You need to sign in to do that
Don't have an account?
![Nisha110687 Nisha110687](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Populate the Picklist
I need to populate a picklist with all the users under a particular profile.
Need Help.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I need to populate a picklist with all the users under a particular profile.
Need Help.
You can do it something like this:
public List<SelectOption> getUserList () { List<SelectOption> result = new List<SelectOption>(); for (User iter : [select id, name from User where .....<your profile conditions here>...]) { result.add(new SelectOption(iter.id,iter.name)); } return result; } <apex:selectList multiselect="false" size="1" value="{!userId}"> <apex:selectOptions value="{!userList}" /> </apex:selectList>