I'm trying to fill a table using the ca_fdAddTableRow method. This is working for textfields without a problem but one column contains a dropdownlist (select field) with 4 options and I didn't find a way to pre select the 4th entrie from that list.
So far I tried to use the selected index attribute from the field itself and to set it with the ca_fdAddTableRow method by name and index but none of them worked.
Here's an example for how to accomplish this. Replace the table_id with your table, the sel_id with the select column ID, and the sel_value with the value of the option you want to set.
Edit: Updated the example. My first post was incorrect.
that was also my idea but this doesn't work for me... here is my code:
The _ID from my select column is 'Zugriff' and the value of the option I want to select is 'keine' but when I try it that way, nothing gets added to the table.
Also make sure the select fields eager attribute set to true. You can then test the addTableRow function in the console.