Forum Home › Forums › Development and Integration › JavaScript API example custom page
Tagged: Rapidscada logged user
- This topic has 36 replies, 4 voices, and was last updated 3 years ago by
Mikhail.
-
AuthorPosts
-
April 8, 2022 at 8:02 am #10159
MikhailModeratorPractical examples are the existing plugins that uses that API.
Please check PlgTable. LinkApril 8, 2022 at 9:39 am #10164
BrainBranchetti99ParticipantHi and thank you for your answer.
I had already seen this example.
But i don’t understand how use the “cnlFilter”, what is this variable?April 10, 2022 at 9:09 am #10167
MikhailModeratorcnlFilter is an instance of scada.CnlFilter class.
April 11, 2022 at 6:47 am #10171
BrainBranchetti99ParticipantOk i understand the parameters required.
But for example if i need to read channel 1, 2, 3, 4 at the same time.
How i can pass this for 4 channels at the function? I call the function with a for or i have a metod for write in to the cn1filter my channels?April 11, 2022 at 10:12 am #10175
MikhailModeratorTry
var myFilter = new scada.CnlFilter(); myFilter.cnlNums = [1, 2, 3, 4]; myFilter.viewIDs = [1, 1, 1, 1]; // ID of the view containing the above channels scada.clientAPI.getCurCnlDataExt(myFilter, function (success, cnlDataExtArr) {...May 13, 2022 at 5:04 pm #10269Matt3
ParticipantHi Mikhil
Is there an equivalent function of getCurCnlDataExt() in version 6?
Kind regards
MattMay 14, 2022 at 9:32 am #10270
MikhailModeratorHi Matt,
Web API became even better.
See this link.
Usage example.November 9, 2022 at 6:34 am #11514
BrainBranchetti99ParticipantI installed my scada on a new pc but now it doesn’t work anymore. I warn myself the following error: https://ibb.co/QvkgC0P
Let me know if you can see the image error.
November 9, 2022 at 10:17 am #11516November 14, 2022 at 6:43 am #11517
BrainBranchetti99ParticipantYes it work now.
Thank you very mutch
November 17, 2022 at 6:59 am #11560
BrainBranchetti99ParticipantHello,
is there a way to read from js which user is logged into the scada? to allow the opening of the page or not
November 17, 2022 at 2:27 pm #11571
MikhailModeratorHello,
See checkLoggedOnNovember 17, 2022 at 2:55 pm #11572
BrainBranchetti99ParticipantHello,
this function tells me if the operator logged in correctly.
I would like to know which operator did it for example between “user” or admin.
In order to enable some buttons to admin and not to user.
Finally, if it were possible to find an example that could be used.Thank you
November 18, 2022 at 11:41 am #11579
MikhailModeratorHello,
I would like to know which operator did it for example between “user” or admin.
Currently, there is no such function. However, it can be developed.
November 21, 2022 at 9:42 am #11619
BrainBranchetti99ParticipantHi,
let me know how much it costs to develop the feature.
Also needed function to log out user from javascript.David.
-
AuthorPosts
- You must be logged in to reply to this topic.