Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Webvisu dialog template

2018-11-13
2018-11-20
  • tjarcoboerkoel - 2018-11-13

    Hello dear readers,

    I'm still learning WebVisu stuff, it's so interesting, but I'll be needing some "universal" popup box which gets and sets variables for that situation/application.

    Say, I'm having a house with multiple rooms. All rooms have Temperature, Co2 and humidity as status (shown) and as setpoint for the room Climate controller (writable).
    I don't like ending up with 10 identical pages where only the Climate variables are different.

    Is there a was to access application variable
    - as index like in Climate.Room[i].Rh = 'OnClickAction' and textvariable Climate.Room[i].Rh
    - or via a pointer ptrRoom =ADR(Climate.Room[1])

    and use this reference in the objects "text variables" for display and as (onclick/dialog) writeback as well?

    Best regards,

     

    Related

    Talk.ru: 1

  • m.prestel - 2018-11-20

    Hello sir,

    you may wanna take a look at this example (https://store.codesys.com/visu-dialog-st.html).
    There are a few example applications including the DialogVarInOut, which seems to fit your requirements!

    Best regards,
    Marcel

     

Log in to post a comment.