Using Custom Webpage in Scada Webbeta 5.0

Forum Home Forums Development and Integration Using Custom Webpage in Scada Webbeta 5.0

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1604
    Washu HakubiWashu Hakubi
    Participant

    Hi, I looked in the plugin in the repository, and I don’t know how to use it.
    At the current version of the project, I’m using 4 Scheme pages and will use 1 custom page, because the Scheme don’t allow good animation and can’t have charts on it, so i will be using javascript, as in D3.JS and SVG to create the pages.
    Now i have a test page that don’t have any data binding or anything, it is plain html and js, nothing is writen on code behind, the code is as follow DropBox link, the page is in the Teste D3 folder.

    It is working on the older version, but can’t make it work on Web Beta.

    On the other post you said I need to make a plugin but i have no idea what that means, i downloaded the OpenPlugin folder and it is in the same link i put above, but it is unchanged (i just deleted all the other stuff that was not PlgWebPage), but I don’t know where or what to change in there.

    So, the question is how i add that page above (or any other page) to the ScadaWeb Beta? What do i need to do to add that test page to the plugin and then to the Scadaweb?

    #1605
    MikhailMikhail
    Moderator

    Hi,

    The basic steps of creating a plugin:
    1. Create a new project of the empty web application type which uses .NET4.
    2. Use the directory structure and namespace structure as PlgScheme or other plugin.
    3. Add PlgYoursSpec class that inherits PluginSpec class.
    4. Describe a new view type or menu item in the plugin specification class.
    5. Add web content (aspx, css, js).
    6. Publish your project.
    7. Specify your dll to WebSettings.xml in Plugins section.

    #1606
    MikhailMikhail
    Moderator

    If you decide to create a new view type, add your view into Interface table using SCADA-Administrator. Your view must be stored in the file in C:\SCADA\Interface folder. The file might be empty but it must exist. File extension equals ViewTypeCode property.

    #1607
    MikhailMikhail
    Moderator

    The simplest plugin is PlgConfig. You can use it to copy-paste.

    #6796
    AvatarMatt3
    Participant

    Hi

    This is the closest post that I’ve come across relating to our question.
    To date, we’ve used rapid SCADA out of the box and configured the system with the built in options and functions.
    However, we now have a need to add 2 custom pages, say, Page 1 and Page 2.

    Page 1
    In this link https://rapidscada.org/integration-with-rapid-scada/ you describe getting data on to a web page. Do you have a working page sample showing how to get data when the HelloWorld example project is running. Maybe one value being read and displayed on the page using the “First Way” and another value being read and displayed using the “Second Way”.

    Page 2
    The customer has developed an application that plots data in a specific format. The plot makes use of the Telerik Chart control. We would like to create a custom page with the Telerik Chart and to get the 1 hour data logged by Rapid SCADA.

    If the above pages can be part of the existing Rapid SCADA framework, that would be great. That would allow us to use the Admin tool to configure everything.

    If not, we are happy to create a custom web site with the above 2 pages to show real-time data to the user and to allow then to plot their custom chart using the 1 hr data from Rapid SCADA.

    Thank you
    Matt

    #6798
    MikhailMikhail
    Moderator

    Hi Matt,

    CustomPageExample

    In case you need to develop a web page, I suggest to use the above example. The 1st and the 2nd ways are preferable if you develop a separate application.

    If the above pages can be part of the existing Rapid SCADA framework, that would be great.

    It can be a part of Rapid SCADA web app if the backend is written using .NET Framework. However, the mentioned example written on clear HTML and JS.

    • This reply was modified 2 months, 1 week ago by MikhailMikhail.
    #6800
    AvatarMatt3
    Participant

    That worked. Thank you.

    #6807
    AvatarMatt3
    Participant

    Hi

    I’ve managed to get an aspx page with basic controls on it to work from within Rapid SCADA. However, I’m not able to get the code blocks in the link https://rapidscada.org/integration-with-rapid-scada/ to work on my page.

    Do you have sample pages showing the use of each method?

    Thank you
    Matt

    #6809
    MikhailMikhail
    Moderator

    Hi,

    Probably, namespace was renamed. Try deleting using and use the VS suggestions.
    Or post the error here.

    #6810
    AvatarMatt3
    Participant

    Hi

    I was missing
    using Scada.Data.Tables;

    All working now.

    Thanks
    Matt

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.