Someone that can help me out with the load() function order to refresh data on the Gantt chart?
I already tried many variations on how to compose the data to pass on to the load() function but none seem to work.
The first time when I open the page it loads fine & its calling the InnitGantt(). But once loade I want to update the data on my Gantt with the RefreshGanttData() but I don't seem to get this working. The result is always "No data available in the table"
let ganttInstance
function InitGantt(data){
//console.log(data);
ganttConfig = JSON.parse(data);
ganttInstance = new Gantt('gantt', ganttConfig);
Microsoft.Dynamics.NAV.InvokeExtensibilityMethod("OnControlInitialized", []);
}
function RefreshGantt(data){
console.log(data);
ganttData = JSON.parse(data);
ganttInstance.load(ganttData);
//ganttInstance.draw();
}
Hello,
Someone that can help me out with the load() function order to refresh data on the Gantt chart? I already tried many variations on how to compose the data to pass on to the load() function but none seem to work. The first time when I open the page it loads fine & its calling the InnitGantt(). But once loade I want to update the data on my Gantt with the RefreshGanttData() but I don't seem to get this working. The result is always "No data available in the table"
data passed on InitGanttData
data passed on RefreshGantt