hello. I am trying to update a pie chart as the data in the database table changes and updates. I am currently getting this error:
10:20:54.057 [MainThread] WARN com.inductiveautomation.factorypmi.application.components.PMIPieChart - system.db.refresh() was unable to find a refresh-compatible property binding on Pie Chart.SELECT VLAN, COUNT(VLAN) AS VLAN_COUNT FROM FA_ECA_MASTER GROUP BY VLAN
10:20:54.058 [MainThread] WARN com.inductiveautomation.factorypmi.application.components.PMIPieChart - system.db.refresh() was unable to find a refresh-compatible property binding on Pie Chart 1.SELECT Unit, COUNT(Unit) AS UNIT_COUNT FROM FA_ECA_MASTER GROUP BY Unit
10:20:54.059 [MainThread] WARN com.inductiveautomation.factorypmi.application.components.PMIPieChart - system.db.refresh() was unable to find a refresh-compatible property binding on Pie Chart 2.SELECT VLAN, COUNT(VLAN) AS VLAN_COUNT FROM FA_ECA_MASTER GROUP BY VLAN
with this code:
system.db.refresh(system.gui.getParentWindow(event).getRootContainer().getComponent("Pie Chart"), "SELECT VLAN, COUNT(VLAN) AS VLAN_COUNT FROM FA_ECA_MASTER GROUP BY VLAN")
system.db.refresh(system.gui.getParentWindow(event).getRootContainer().getComponent("Pie Chart 1"), "SELECT Unit, COUNT(Unit) AS UNIT_COUNT FROM FA_ECA_MASTER GROUP BY Unit")
system.db.refresh(system.gui.getParentWindow(event).getRootContainer().getComponent("Pie Chart 2"), "SELECT VLAN, COUNT(VLAN) AS VLAN_COUNT FROM FA_ECA_MASTER GROUP BY VLAN")