Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Datatable Cursor Position

Fairly new to lookout - I am using datatables to multiplex data into panels - I am not sure what the best way to control the cursor position for the datable is. Here is what I wish to do: if I click say on a pushbutton associated with pump1, I want to change the cursor position to 1, and open the Pump Config panel (hypothetically) which has the information for all the pumps 'multiplexed' into it. If I click on Pump2, I want the cursor position to change to 2 and open the panel as well (I have no trouble opening the panels however I want, it's just the cursor position). Is there an else statement, or some way to layer if statements? If there were I could connect Cursor.1 to something like if(pump1 is pressed, 1) else if (pump2 is pressed, 2)
else
(Cursor.1)...thanks for the help.
0 Kudos
Message 1 of 2
(3,043 Views)
Datatables have this functionality built in.

Connect each pump pushbutton to is respective row.cursor in the datatable datamember set. For example, if cursor 1 is the multiplexing cursor and Pump3 data is in row three connect the pushbutton for Pump3 to Datatable.3.1. When the pushbutton is pressed cursor one will move to row 3. For Pump2 it will be Datatable.2.1, etc.

Regards,
Tommy Scharmann
Message 2 of 2
(3,043 Views)