cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hierarchies in dropdowns

ahfadoo
Participant
0 Likes
551

Hello, I wanted to ask if it is possible to create a dropdown consisting of multiple hierarchies. Such as having a dropdown that has C1 then an option to break it down to its child values within a singular dropdown. 

 

Any help at all is appreciated! Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

N1kh1l
Active Contributor

ahfadoo

The dropdown widget only supports flat list population so you cannot expand parent nodes in drop down and expand to child nodes.

Br.

Nikhil

0 Likes

 

SAP Managed Tags: SAP Analytics Cloud, analytics designer

 

Hi community

I am new to SAC.b I want to introduce a dropdown filtering menu in my story. I succeded in populating the dropdown using this lines of code in the onInitialization()


var Inspectors_list = Table_1.getDataSource().getMembers("Don_ordre.Inspecteur");

if (Inspectors_list.length > 0) 
{
for (var i=0;i<Inspectors_list.length; i++){
Dropdown_1.addItem(Inspectors_list[i].id,Inspectors_list[i].description);
}}
 
the i proceeded to to adding the following lines of code in the Dropdown_1 - onSelect()

var x = Dropdown_1.getSelectedKey();
console.log(x);
Table_1.getDataSource().setDimensionFilter("Don_ordre.Inspecteur",x);


The filter is not working correctly and i do not understand why.
There is only two values in the dropdown once selected returns values , all the others returns zero.

 



Answers (0)