I would like to generate a table in an automatic way.
For that I would like to write an script that generates the bindings of the table to map different cells with Tags.
Is there any way to do that? I dont want to spend 4 days adding tags to the table.
The table component is not ideal for this. Usually we want the table to update if the data changes. This can happen automatically if a binding is applied to the data property if the tag is referenced in the binding. The binding is added to a subscription to that tag and any time the tag changes the binding re-evaluates. (Referencing it in a binding transform doesn't do this, so a script transform won't subscribe.)
I want to display on a table the GPS position of different vehicles, this GPS (latitude and longitude) are tags in the tag browser. But I have more than 100 hundred vehicles. So I would like to automate the binding generation to the DATA property of the table.
OK, so you could create an expression binding with now(30000) (which will trigger every 30 s) and write a script transform on that to create the data. Is this what you have in mind?
Be aware that if you repeatedly regenerate a Perspective Table's props.data in this manner, the table will be extremely annoying for the user, because any row selections or paging will be lost when the binding updates.
Make the table have a column for the static tag paths to the coordinate tags. Set those columns to use "view" render mode, and point the cells at a nestable view that can indirect bind to the tag for the dynamic display.