Simply, we can create a picklist through a field which its type is Picklist. And there we can define the list of values. But what i want is to get this list from the databse and display in the picklist.
No, it should give select dropdown. Anyways what does it give? I am 100% sure this will generate select dropdown. I think you are doing something wrong.
Apex Controller method
VF Page
selectedCountry is a property of controller and countryOptions is above method in controller.
All Answers
Poor description!!!:mansad:
Can you please elaborate in depth, what you exactly want?
Simply, we can create a picklist through a field which its type is Picklist. And there we can define the list of values. But what i want is to get this list from the databse and display in the picklist.
Apex Controller method
VF Page
selectedCountry is a property of controller and countryOptions is above method in controller.
Thanks For the solution. This does not give a DropDownList. I need somthing like <select> in HTML.
No, it should give select dropdown. Anyways what does it give? I am 100% sure this will generate select dropdown. I think you are doing something wrong.
Thanks jaxdmaster, it is working.