+ Start a Discussion
Shruthi GM 4Shruthi GM 4 

Hi Everyone.Here is my code and am getting error:Error: Wrong type for attribute <c:multiselectpicklist leftoptions="{!allUser}">. Expected String, found SelectOptionValue

<apex:page standardController="Project__c" extensions="ProjectController"  showHeader="true" sidebar="true" tabStyle="Account">
<apex:form >
<apex:pageBlock title="Information " id="pb1" mode="edit" >
<apex:pageBlockSection columns="2" >
 <c:MultiselectPicklist leftLabel="Available Licensed User" 
                                leftOptions="{!allUser}"
                                rightLabel="Selected Lisenced"
                                rightOptions="{!selectedUser}"
                                size="10"
                                width="150px"  /> 
                                 </apex:pageBlockSection>
                                 </apex:pageBlock>
                                 </apex:form>
 
</apex:page>

Though in the controller I have declared alluser as select option am getting above error.Can anybody please tell what exactly needs to be done?
Best Answer chosen by Shruthi GM 4
Vijay NagarathinamVijay Nagarathinam
HI Shruthi,

Refer the below links you get some idea about multiselct picklist.

http://salesforce.stackexchange.com/questions/28062/passing-selectoption-to-multiselectpicklist-custom-component-results-in-cannot

Thanks,
Vijay