rapidscada V6 use CustomPage

Forum Home Forums Development and Integration rapidscada V6 use CustomPage

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11932
    vaneber
    Participant

    at V5.8.4,II refer to this
    then I got a custom page

    at V6.0.0,I do the same thing,but the webpage red words “Unable to redirect because URL is empty”

    what did i do wrong?

    #11933
    vaneber
    Participant

    rapid scada 5
    clicking F12, console, shows:
    10:49:04 Load view 3 by /Scada/plugins/WebPage/Landing.aspx?viewID=3
    10:49:05 Redirect to ../../custom/MyPage.html
    10:49:05 Request ‘ClientApiSvc.svc/GetEvents’ successful
    ….

    rapid scada 6
    10:44:54 Load view 3 from /WebPage/Landing/3
    Redirect URL is empty

    V5 and V6 use same configuration in the Interface table
    refer to this

    #11935
    Mikhail
    Moderator

    Columns in the Views table (v6):
    Path – path in the explorer, for example, MyFolder\MyPage
    View Type = Web page view
    Arguments – web page URL
    Title – any text

    If it does not help, please provide link to a screenshot of the Views table and info from browser console.

    #11937
    vaneber
    Participant

    Hi,thanks for reply
    I do not understand your words “Arguments – web page URL”
    at V5 the example not fill andthing in this cell,but works fine.
    about “Path”,I write a note in screenshots
    will you give an example?

    here are screenshots of the views table and info from browser console.
    https://ibb.co/RDL2PJn
    https://ibb.co/5n4xCLF

    #11940
    Mikhail
    Moderator

    The Arguments cell should be something like “../../custom/MyPage.html”
    Path = “Test\test”
    Title = “test”

    #11943
    vaneber
    Participant

    ok,now I can view .html by chrome
    the cells are:

    Path=”Test\test”(I understand it as the menu of the web page,also I found that only “Test” works, Secondary directory “test” not work. But in HELLO WORLD EXAMPLE,this cell fill in “HelloWorld\Simulator.tbl”,I think it means the .tbl file’s path.There is a difference between the two)
    View Type=”Web page view”
    Object=”Enterprise”
    Arguments=”../../custom/MyPage.html”(Different from V5 version,the .html file is in C:/Program FileS/SCADA/ScadaWeb/wwwroot/custom/Mypage.html)
    Title=”test”(The real Secondary directory name)

    Although there is still a problem with referencing the js file, I think I can solve it.

    thanks for your help~

    #11947
    Mikhail
    Moderator

    Thank you for sharing the experience.
    JavaScript API version 6 is different from API v5.

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