Hi Sam,
I've been trying to puzzle this out -
I managed to get at the run-time value of a select field of a table in PAM with JSON.stringify() -
It looks like this, where 'var_0' is the id of the select field in the table:
"var_0":"option{name=option1, value=1}"
I was unable to identify what sort of object that is - it's sort of weird syntax for JSON, what with the '=' signs and all.
Maybe you'll have better luck with figuring that out than I did?
Anyway, I do have a suggestion on another way to skin the cat, as it were.
If you can get at the JS object prior to loading it to the table, and you use a checkbox instead of a two option select field, you can just treat the checkbox as an additional boolean value -
So say you have a table with columns 'myitem' and 'myboolean' -
for (item=0;item<tableData.length;++item){
tableData[item].myboolean = true;
}
then just load 'tableData' to your table with ca_pam_setTableDataFromJSObject()
That of course only works if your select never gets bigger than two items, but it might be a good stop-gap until you can solve the other issue.