Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Not able to get property value from onclick event

$
0
0

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


Viewing all articles
Browse latest Browse all 4041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>