Accessing attribute members in Field List

Hi,

Is it possible to access a list of available attribute members with JavaScript when using the standalone field list?

E.g. if I have a dimension 'Country' in my cube, I want to be able to count all available countries, without the user needing to expand the hierarchy. 

I've looked through the available properties of the Field List object but cannot see the values.

Thanks,
Harry.

1 Reply

SN Sivamathi Natarajan Syncfusion Team February 25, 2020 12:20 PM UTC

 
 
Kindly use the method “getCalcChildMembers” to fetch the members of a specific hierarchy level from server. Here, you should pass below parameters as follows, 
-          dataSourceSettings 
-          level unique name of the specific hierarchy 
 
Follow below code example.  
 
Code Example: 
 
button.element.onclick = function () { 
    fieldlistObj.olapEngineModule.getCalcChildMembers(fieldlistObj.dataSourceSettings, "[Date].[Fiscal].[Date]"); 
    console.log(fieldlistObj.olapEngineModule.calcChildMembers); 
}; 
 
Meanwhile, we have prepared sample for your reference. 
 
Please let us know if any concerns. 
 
Regards, 
Sivamathi.

Loader.
Up arrow icon