cancel
Showing results for 
Search instead for 
Did you mean: 

Force refresh of JGantt/JNet graph

Former Member
0 Kudos

Hi,

I'm working on an ABAP Web Dynpro. I have a view that hosts a JGantt graph.

I've initialized the graph's datasource in the wdDoInit method by generating an XML and binding it to the context.

Now I need to be able to refresh the graph with new data.

Is there a way to force the JGantt applet to reload the data from the context node?

Thank you,

Pietro

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Is it you want to refresh the data periodically or based on change in data. If it is periodically have you tried timedtrigger UI element.

Best Regards,

Arun Krishnamoorthy

Former Member
0 Kudos

Hi Arun,

thank you for your reply.

I'd like to refresh the data based on the change in data: i.e. the graph shows the data for one day, the user selects another day in a calendar control, the XML is regenerated and the graph updated to show the data for the new day.

Thanks,

Pietro

Former Member
0 Kudos

I've found that if the context attribute's value hosting the data is changed, then the Gantt updates itself.

Thanks. Problem solved.

Answers (0)