APEX-AT-WORK no image

Getting access to your Flash Anygantt via Javascript

Von Tobias Arnhold 5.12.2014
In case you want to edit or react on actions inside your gantt during the runtime of your application. That's the way how to do it.

Get access to the gantt element with this Javascript command:
AnyGantt._charts.chart__0
A description about the possible activities can be found here:
http://www.anychart.com/products/anygantt/docs/users-guide/index.html?JavaScriptIntegration.html

Here is an example how to get the current startDate of the clicked period:
flash = AnyGantt._charts.chart__0;
flash.addEventListener('periodSelect',function(e){
document.getElementById("P1_CUR_START_DATE").value = flash.getSelectedPeriodInfo().startDate;
});  
Thanks to my colleague Richard in finding out how to do this.

Post Tags:

1 One Comment " Getting access to your Flash Anygantt via Javascript "

Anonymous

Cool, thanks for the info. This really helped me alot.