Skip to main content
I want to display more than 1000 account names in one picklist using select option.

<apex:selectList value="{!myAccountspicklist}" >

<apex:selectOptions value="{!myaccounts}"/>

  </apex:selectList>

public List<Account> getMyaccounts(){

        List<Account> lstAccount = [select id,name from account];

        return lstAccount;

    }
2 respuestas
  1. 11 oct 2019, 10:43 a.m.
    I want to display more than 1000 account name in one picklist field using selectOption. Earlyer I am able to display 20 name using above code but after inserting more than 1k it is throwing error.