JavaScript API example custom page

Forum Home Forums Development and Integration JavaScript API example custom page

Viewing 15 posts - 16 through 30 (of 37 total)
  • Author
    Posts
  • #10159
    Mikhail
    Moderator

    Practical examples are the existing plugins that uses that API.
    Please check PlgTable. Link

    #10164
    BrainBranchetti99
    Participant

    Hi 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?

    #10167
    Mikhail
    Moderator

    cnlFilter is an instance of scada.CnlFilter class.

    #10171
    BrainBranchetti99
    Participant

    Ok 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?

    #10175
    Mikhail
    Moderator

    Try

    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) {...
    #10269
    Matt3
    Participant

    Hi Mikhil

    Is there an equivalent function of getCurCnlDataExt() in version 6?

    Kind regards
    Matt

    #10270
    Mikhail
    Moderator

    Hi Matt,

    Web API became even better.
    See this link.
    Usage example.

    #11514
    BrainBranchetti99
    Participant

    I 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.

    #11516
    Mikhail
    Moderator

    Make sure that you configure WCF Services as shown here.

    #11517
    BrainBranchetti99
    Participant

    Yes it work now.

    Thank you very mutch

    #11560
    BrainBranchetti99
    Participant

    Hello,

    is there a way to read from js which user is logged into the scada? to allow the opening of the page or not

    #11571
    Mikhail
    Moderator

    Hello,
    See checkLoggedOn

    #11572
    BrainBranchetti99
    Participant

    Hello,
    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

    #11579
    Mikhail
    Moderator

    Hello,

    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.

    #11619
    BrainBranchetti99
    Participant

    Hi,
    let me know how much it costs to develop the feature.
    Also needed function to log out user from javascript.

    David.

Viewing 15 posts - 16 through 30 (of 37 total)
  • You must be logged in to reply to this topic.