Hello everyone,
I’m using Ignition 8.1 and can’t find a way to implement more data types in a table column.
A standard table only allows you to declare one data type in a column, but I need to show tag values with different data types.
Is it possible to create such a table in the ignition?
Picture related.
You can use the java class DatasetBuilder and specify an explicit column type of java.lang.Object
.
I am not proficient with java and ignition SDK. Is there any other way?
You can use java classes directly in jython. No need to actually make a module with the SDK. There are numerous examples here on the forum:
https://forum.inductiveautomation.com/search?q=DatasetBuilder
This use case should be fine, since everything in a tag should be serializable, but in general be careful with this capability; it’s easy to inadvertently store something that isn’t (Java) serializable into a Vision window and cause yourself problems.
Indeed. If in doubt, use the TransientDataset
class from my Simulation Aids module to wrap datasets that contain non-serializable objects. This ensures they won’t get embedded in a project resource and attempts to deliver across a network will deliver no rows.