Get Free Trial

Callback handler passed to getMembers() not being called

Nate Anderson asked on November 19, 2018

I’m using 2.4, and trying to use getMembers to  access hierarchy information. I’m using an OLAP data source. The example contained in the documentation does not work for me:
I tried using that code directly (with the name of my hierarchy), and while the callback works as expected if I define a function in the getMembers call, using the specified syntax does not invoke the callback.
So the following is not working for me: 

flexmonster.getMembers(currentReportHierarchy, '', 'onGetMembers');

function onGetMembers(members) {
for (var i = 0; i < members.length; i++) {

Were there changes made to this function between 2.4 and 2.6?

1 answer

Dmytro Zvazhii Dmytro Zvazhii Flexmonster November 20, 2018

Hello Nate,
Thank you for writing. Please check the example here:
Please note that no changes were made to this method between 2.4 and 2.6.
Let us know in case of any other question.

Please login or Register to Submit Answer