I'm trying to select a "Default Value" from a list but i'm struggling to figure out how. I want to preselect the option that corresponds to the selectedrow.
I have 2 datasets to compare.
{{self.values}}
0, 15
1, 16
The first column being the index of the dropdown value. The second column is the id. So self.values[0], selects the first value
The other table I have is the {{order_table.selectedRow.data.id}}
The selected row is returns an id of 15.
How to do create an expression that sets the self.values index to the matching id of 15, which would be [0] in this case?
I see the default is index 0
{{ [self.values[0]] }}
So I perhaps I would do another expression inside the index [ ]? I'm lost.
Thanks!!!