Quantcast
Channel: APEX-AT-WORK by Tobias Arnhold
Viewing all articles
Browse latest Browse all 177

Getting access to your Flash Anygantt via Javascript

$
0
0
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.

Viewing all articles
Browse latest Browse all 177

Trending Articles