Hey Experts,
I've been stuck all day, and can't figure out why it's not working.
I can't get the value of a property using a function that i created on the contribution.ztl file, it Always returns null.
Can you take a look into my code to see what is wrong?
https://github.com/olafecorcam/com.leandro.gp.pietd/tree/master
I think the problem is on the javascript function that i attached to the graph...
chart.addListener("clickSlice", function(val) {
that._clickedText = val.dataItem.title;
that._clickedValue = val.dataItem.value;
that.firePropertiesChanged( [ "clickedValue","clickedText" ]);
that.fireEvent("onclick");
});
The contribution file is as following
String getClikedText(){*
return this.clickedText;
*}
Float getClikedValue(){*
return this.clickedValue;
*}
But it Always returns null.
Any ideas?
Best
Leandro