You need to sign in to do that
Don't have an account?
RAJU_DEEP
Dynamic drop down list.
Hello,
I am creating a dropdown list which has to contain the resultant data from the query. Suppose i fire the query [select id, name from Items__c] after that i want to put the retrieved records of the name field in the drop down list. Is there any way to figure out this problem. Any suggestion regarding this will be helpfull for me...
Thanks.
Please refer to documentation for <apex:selectList> here. That has an example of to go about do this. The example uses a hardcoded list of values but you can iterate over a SOQL to populate the same.
Thats the example from the salesforce documentation you can access it by going to your org, then edit the url and after .com put apexpages/apexcomponents.apexp
Ignacio.
This thing i already tried but i want insteadof this data, the resultant data from query should be fixed in the selectOption which should be shown in the form of drop down list...
Is there any way to fulfill this task....
Follow the steps of this example, but instead of filling the options as it does do something like this