Table with Different Data Types In The Same Column

I’m currently using Ignition 8.1. And I’m having trouble creating a table where one column has more than one data type. Where the table looks like something below:

Tag Name | Data Type | Value | Timestamp

Tag1 | Boolean | 0 | 06/28/2022 12:30 PM
Tag2 | Boolean | 1 | 06/28/2022 12:30 PM
Tag3 | String | Open | 06/28/2022 12:30 PM
Tag4 | Integer | 37 | 06/28/2022 12:30 PM
Tag5 | Float | 37.37 | 06/28/2022 12:30 PM

I’m simply having trouble even figuring out how to create such a table. Any examples would be appreciated.

Back story: We add continuously adding new tags in our field location, however some of the tags don’t need priority on the a main screen. But I would like the make a table that no matter now many tags get added there is always a place someone can look to see the value…specially if I can bind this table to a Tag Browser Tree should be nice.

Ignition’s datasets, as a consequence of their Java structure, are strictly typed. You’ll have to manually create a dataset with an extremely broad type to allow any arbitrary value to be inserted; specifically you’ll want to use the DatasetBuilder Java class (search on the forums) to create the dataset and the java.lang.Object class as the type for the Value column.

2 Likes