I have a table that has batches for an operator to select to queue data to a plc. They have to navigate to another screen sometimes and when they come back to the schedule screen the batch that was selected is no longer selected. Is there a way to save that selected row? The data is binded to a query. I also have persistence on for the data and the selected row, but nothing I am trying is working.
The logic that comes to my mind is to store whatever uniquely identifies the selected row in a variable. I wouldn't use the row number as the next query might give a new dataset.
Each time you show the table, check if a row matches the identity you stored, and select it.
I don't have Ignition specific details, I'm just an admirer of the product.
If I'm understanding your explanation correctly, you have 1 table that is used for selecting a Batch ID or similar, and then another that shows additional data about the selected batch, correct?.
You could make 2 custom properties at the session level,
selectedBatchDetails. Bidirectionally bind the first table's selection property to
selectedBatch and have your query for the batch data on
selectedBatchDetails, which uses the necessary data from
selectedBatch to fetch the needed data. Bind the second table's data value to the
Persistence only means that the system will save and use the value you see in the designer as the value for that property during binding startup and before bindings are evaluated.
I created the session custom property and bidirectionally binded it to the selected row on the table. I also had to bind the column for it to work, but I just used an expression and binded it to the name of the column. It works great now. Thank you for the help.