Wanted to check if there is a way to create empty data set with data types associated with them, something like below
emptyDS = system.dataset.toDataSet([('col1', Double),('col2', String),('col3', Date)], [])
I am trying to compare templates data set (modifiable by users) with table data set and when a date field is cleared (making that field None) the template data set shows that field type as String while table data set still shows as Date.
FYI, I am using below API to easily compare the data changes
def isDataChanged(tableDataset, templateDataset):
from com.inductiveautomation.ignition.common.util import DatasetTestUtils
return DatasetTestUtils.equals(tableDataset, templateDataset)