dynamic dropdowns

Hi,
I am new to SmartClient.
I searched the forum completely for my requirement to display the dropdowns by fetching the values from the database. I could not get the desired solution from any of the threads.

The requirement is, when i navigate to a screen i want to display a dropdown whose values will be fetched from the database.

In the Data Handler Class,I will fetch the list of values from the database and populate them in an arraylist.In the request handler class i.e. the manager class,i set this list in DSResponse.setData().

My confusion starts here:
1.How should i write the datasource so that ,i get the values in the valueMap for dropdowns?
2.should I map the datasource to the dynamic form in which i have written the select field or to the select field itself?

I could do all these things for a listgrid but not able to do same thing for the dropdowns.

Regards,
Keerthi

You use the optionDataSource property. There are many examples of this, here’s one of them.

Be sure to use the documentation and examples, and especially the search feature of the documentation. The forums is not your only resource and not the right place to start.