How to code extracting column value from infotable row when columns/fields are dynamic
Hi,
is there a way to extract a value from an infotable row based on the column index. Normally you extract the data by referencing the field name
i.e. var myVal = myInfotable.rows[x].fieldname ;
However, I am using GetLoggedProperties() service to create a list of property names. I then iterate through this list and use the QueryNamedPropertyHistory service to create the table using an enrty from list of logged property names as an input.
Ideally I'd like to be able to extract the data values from the resultant infotable using something like:
var row = myInfotable.rows[x] ;
var myVal = row.Fields['xxxxxx'] ; (where 'xxxxx' is the input property name)
Is there a simple way to do this? I do know that because I only pass in 1 property name that the column I'm interested in will be the second one, so perhaps I could use an index?
Thanks,
K

