Forum Home › Forums › Development and Integration › rapidscada V6 use CustomPage
- This topic has 6 replies, 2 voices, and was last updated 2 years, 10 months ago by
Mikhail.
-
AuthorPosts
-
January 9, 2023 at 11:59 am #11932
vaneber
Participantat V5.8.4,II refer to this
then I got a custom pageat 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?
January 10, 2023 at 2:59 am #11933vaneber
Participantrapid 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 emptyV5 and V6 use same configuration in the Interface table
refer to thisJanuary 10, 2023 at 8:47 am #11935
MikhailModeratorColumns 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 textIf it does not help, please provide link to a screenshot of the Views table and info from browser console.
January 10, 2023 at 9:16 am #11937vaneber
ParticipantHi,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/5n4xCLFJanuary 10, 2023 at 1:40 pm #11940
MikhailModeratorThe Arguments cell should be something like “../../custom/MyPage.html”
Path = “Test\test”
Title = “test”January 11, 2023 at 1:45 am #11943vaneber
Participantok,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~
January 11, 2023 at 1:42 pm #11947
MikhailModeratorThank you for sharing the experience.
JavaScript API version 6 is different from API v5. -
AuthorPosts
- You must be logged in to reply to this topic.