cancel
Showing results for 
Search instead for 
Did you mean: 

Populating a dropdown list contained within a composite

JBARLOW
Contributor
0 Kudos

Just wondering if anyone can shed light on how to populate a dropdown list contained within a composite?

Using the BestRunJuice sample model - a really simple bar chart and dropdown list.
How do we call the script to do the usual
--- getdatasource.getmembers('sales_manager') ... etc etc Add them all to the dropdown

It seems odd that dropdowns are available in composites, yet only viable with manually entered values:?

Accepted Solutions (1)

Accepted Solutions (1)

Bob0001
Advisor
Advisor
0 Kudos

From the documentation there is no "onInitialization" event so similar yet. One workaround would be to create an interface function "initialize" in the composite and call it from the application for each composite in your app.

Answers (2)

Answers (2)

JBARLOW
Contributor
0 Kudos

Thanks Bob,

That worked, must admit i've not really used composites much up until now - so still on the learning curve of the limitations/nuances

Cheers

James

david3030
Explorer
0 Kudos

Hello, you can make a function in the composite to populate your dropdown and call it from the main Story.

: