You need to sign in to do that
Don't have an account?
Rodolfo Calvo
How do I show all accounts in a selectList?
Hello team,
I have this code:
Controller
How can I show all my accounts in the selectList? I need an example of coding the method!
Thanks in advance!
I have this code:
<apex:pageBlock> <apex:pageBlockSection title="Custom Picklist Using selectList and selectOption" collapsible="false"> <apex:selectList value="{!selectedCountry1}" multiselect="false" size="1"> <apex:selectOption itemValue="INDIA" itemLabel="India"/> <apex:selectOption itemValue="USA" itemLabel="USA"/> <apex:selectOption itemValue="United Kingdom" itemLabel="UK"/> </apex:selectList> <apex:outputText value="{!selectedCountry1}" label="You have selected:"/> </apex:pageBlockSection> </apex:pageBlock>
Controller
public String selectedCountry1{get;set;}
How can I show all my accounts in the selectList? I need an example of coding the method!
Thanks in advance!
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_selectList.htm
All Answers
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_selectList.htm
The above scenario can be acheived through Dynamic Apex.
Please check the below link for sample code with explanation.
http://sfdcsrini.blogspot.com/2014/11/dynamic-apex-in-salesforce.html
I hope it will help you.
Regards,
Jyothsna D
See below link-
https://www.minddigital.com/how-to-create-pagination-within-salesforce/
and Try this code-
Thanks
RupalKumar
Mirketa Software Pvt Ltd
http://mirketa.com/index.html