Skip to main content
deleted 5 characters in body
Source Link
Carlos
  • 1.9k
  • 8
  • 36
  • 54

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

VF

<apex:selectList value="{!param}" size="1" >

 <apex:selectList value="{!param}" size="1"  >
     <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
   </apex:selectList> 

</apex:selectList>

Controller

  public List<User> param{
        get{
             return  param = [Select id from User ];
        }
          
        set;
  }

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

VF

<apex:selectList value="{!param}" size="1" >

  <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
    

</apex:selectList>

Controller

  public List<User> param{
        get{
             return  param = [Select id from User ];
        }
          
        set;
  }

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

VF

 <apex:selectList value="{!param}" size="1"  >
     <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
 </apex:selectList> 

Controller

  public List<User> param{
        get{
             return  param = [Select id from User ];
        }
          
        set;
  }
edited title
Source Link
Chris Duncombe
  • 24.3k
  • 13
  • 77
  • 116

Assing Accessing Picklist values from controller

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

codeVF

<apex:selectList value="{!param}" size="1" >

  <apex:selectListselectOption value="itemLabel="{!param}" size="1"itemValue="{!param}" />
 
    

</apex:selectList>

Controller

  public <apex:selectOptionList<User> itemLabel="{!param}"{
 itemValue="       get{!
             return  param}" />= [Select id from User ];
        }
  </apex:selectList> 

Controller public List param{ get{return param = [Select id from User ]; }

    set;   
        set;
  }

Assing Picklist values from controller

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

code

  <apex:selectList value="{!param}" size="1" >
 
      <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
        
  </apex:selectList> 

Controller public List param{ get{return param = [Select id from User ]; }

    set;
    }

Accessing Picklist values from controller

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

VF

<apex:selectList value="{!param}" size="1" >

  <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
    

</apex:selectList>

Controller

  public List<User> param{
        get{
             return  param = [Select id from User ];
        }
          
        set;
  }
Source Link
Carlos
  • 1.9k
  • 8
  • 36
  • 54

Assing Picklist values from controller

I am trying to bind a pick list from a controller, my goal is to get the IDs from User Object and display them in the pick list. Any help will be appreciate it!

code

  <apex:selectList value="{!param}" size="1" >

      <apex:selectOption itemLabel="{!param}" itemValue="{!param}" />
        
  </apex:selectList> 

Controller public List param{ get{return param = [Select id from User ]; }

    set;
    }