I am using the following code for expression binding of Timer component value property, to show the data in ignition table. But it is showing Bound Const error.
Can someone suggest, where I could be wrong?
if {Root Container.Timer.value}==0:
end = system.date.now()
start = system.date.addHours(end, -4)
table = event.source.parent.getComponent("DataTable")
results = system.alarm.queryJournal(journalName="Journal", startDate=start, endDate=end)
table.data = results.getDataset()