I need to add a list selector to allow an operator to initiate an sequence. They will scan through the list and select the operation they wish to initiate. The labels are in a Rockwell PLC as string array values. I am thinking a Table object will work, but I will need to return an integer for the selected sequence to the PLC to initiate. Tjhat value is currently done inside the Rockwell List Selector object.
Table for display, allow row selection, selected row is an integer. I'd recommend having a view custom property for the selected row, and bi-directionally bind the table's selectedRow to that. Have the buttons modify this view custom property.
On the view root, create an array and add the PLC tag values to that array in the order they appear in the PLC. Make sure the format matches what the table is looking for. Bind the table data to that array.
On confirmation, write the value of the view's selectedRow custom property to the PLC.
2 Likes
