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

Editable table

joanm
2021-07-08
2021-07-09
  • joanm

    joanm - 2021-07-08

    Hello all,

    I'm making a project in whihc I have to show and edit a lot of values inside an array of structures:

    the structure has 3 reals inside:

    ST_DATA_ITEM
    {
        rFault : REAL := 0.0;
        rWarning : REAL := 0.0;
        rMinimum : REAL := 0.0;
    }
    

    And the array of structures:

    arrdataToShowAndModify : ARRAY[1..50] OF ST_DataItem;
    

    This makes a table (in the visualization) with 50 rows and 3 columns which is perfect.

    This said, how can I edit the values when touching them?

    I've been trying to find how to do it for a while but have not been able to see it.

    Thank you very much for your time and help.

     
  • m.prestel

    m.prestel - 2021-07-09

    Hey,

    In the column configuration check "Use template"
    Then add a "Write variable" input action, e.g. here on OnMouseClick.

    Best regards,
    Marcel

     
    πŸ‘
    1
  • joanm

    joanm - 2021-07-09

    SUPER!

    Thank you very much Marcel!

     

Log in to post a comment.