cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Analytic Cloud Application Design - How to fill a dropdown by data source dimension?

michaelwecker
Participant
3,479

Hello,

does somebody know how to fill a dropdown within SAP Analytic Cloud Analytic Application

I understand that you have to fill it on onInitialization.

My try was:

var product_list = Table_1.getDataSource().getMembers("Produkt");

Dropdown_Produkt.addItem(product_list, product_list);

How is the syntax for

addItem(key: string, text?: string);

Thank you for your support

Best regards

Michael

joyal_laj
Participant
0 Kudos

Hai,

Can we enable search inside a similar dropdown having dimension values?

Thanks and Regards,

Joyal Laj

View Entire Topic
michaelwecker
Participant

Hello Tammy thank you for your quick answer.

The code you delivered was almost right I just changed

var i=0;
var productlist = Table_1.getDataSource().getMembers("Produkt");
for (i=0;i< productlist.length; i++)
{
Dropdown_Produkt.addItem(productlist[i].id,productlist[i].description);
}

Thank you very much.

Best regards

Michael Wecker