+ Start a Discussion
Cloud AtlasCloud Atlas 

VF page Mutli-select picklist

Hello,

I am trying to incorporate Multi-Select picklist in a VF page for a custom object.
Problem is Multi-Select is not showing all ~30 values. Instead it just displays 6-7 values.
How can I correct it??
Below is is VF page and related class.

VF Page...


<apex:page standardcontroller="Rules__c" extensions="addRules" tabStyle="Rules__c" sidebar="false" >
<apex:form >
<apex:pageblock id="theRuleRec" >
<apex:pageblocksection columns="1" id="thePagSec">
<apex:outputLabel value="Selection">
<apex:inputField value="{!rulRec.Selection__c}"/>
</apex:outputLabel>
<apex:pageBlockSectionitem >
<apex:outputLabel value="LOB Values">
<apex:inputField value="{!rulRec.Values_of_LOB__c}"/>
</apex:outputLabel>
</apex:pageBlockSectionitem>
<apex:pageBlockSectionitem >
<apex:outputLabel value="POI Value">
<apex:inputField value="{!rulRec.Values_of_POI__c}"/>
</apex:outputLabel>
</apex:pageBlockSectionitem>
<apex:outputlabel value="Destination">
<apex:inputField value="{!rulRec.Destination_Name__c}"/>
</apex:outputLabel> </apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save" />
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons> </apex:pageblock> <center>
<apex:outputText value="{!strMsg}" id="msg" style="color:#FF0000"/>
</center> <apex:pageblock id="theRuleLst" >
<apex:pageblockTable value="{!RuleRecords}" var="rule" rendered="{!if(editRec == true,false,true)}">
<apex:column >
<apex:inputCheckbox value="{!rule.Checkbox__c}" />
</apex:column> <apex:column value="{!rule.Id}" />
<apex:column value="{!rule.Selection__c}" />
<apex:column value="{!rule.Values_of_LOB__c}" />
<apex:column value="{!rule.Values_of_POI__c}" />
<apex:column value="{!rule.Destination_Name__c}" />
<apex:column value="{!rule.Rule_Updated__c}" />
<!-- <apex:column > <apex:commandButton value="Edit" action="{!editRulLst}"/>
</apex:column> -->
</apex:pageblockTable>
<apex:pageblockTable value="{!RuleRecords}" var="rule" rendered="{!if(editRec == true,true,false)}" id="theRuleLstEdit">
<apex:column >
<apex:inputCheckbox value="{!rule.Checkbox__c}" />
</apex:column> <apex:column value="{!rule.Id}" />
<apex:column headerValue="Selection" >
<apex:inputfield value="{!rule.Selection__c}"/>
</apex:column> <apex:column headerValue="POI Values" >
<apex:inputfield value="{!rule.Values_of_POI__c}"/>
</apex:column> <apex:column headerValue="LOB Values" >
<apex:inputField value="{!rule.Values_of_LOB__c}"/>
</apex:column> <apex:column headerValue="Destination Name" >
<apex:inputField value="{!rule.Destination_Name__c}"/>
</apex:column> </apex:pageblockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Update" action="{!updateRulLst}" rerender="theRuleLst,thePagSec" rendered="{!if(editRec == true,true,false)}" disabled="{!if(RuleRecords.size = 0,true,false)}"/>
<apex:commandButton value="Edit" action="{!editRulLst}" rendered="{!if(editRec == false,true,false)}" id="theRuleRec" disabled="{!if(RuleRecords.size = 0,true,false)}"/>
<apex:commandButton value="Delete" action="{!deleteRulLst}" rerender="theRuleLst,thePagSec,msg" rendered="{!if(editRec == true,true,false)}" disabled="{!if(RuleRecords.size = 0,true,false)}"/>
<apex:commandButton value="Cancel" action="{!cancelLst}" rerender="theRuleLst,thePagSec" rendered="{!if(editRec == true,true,false)}"/> </apex:pageBlockButtons>
</apex:pageblock>
</apex:form>
</apex:page>

Apex Class...

<Very Long and useed only for Edit/Delete/Save>
<If needed, I wil post it>

Any help is appreciated.
Thanks in advance.
Best Answer chosen by Cloud Atlas
Shrikant BagalShrikant Bagal
Please check that you have assign all values in RecordType of Rules__c?

All Answers

Shrikant BagalShrikant Bagal
Please check that you have assign all values in RecordType of Rules__c?
This was selected as the best answer
Cloud AtlasCloud Atlas
Hey Shrikant,

Thanks for the response.
That was the first thing I checked.
All values are available, but only 7 are being shown.
Cloud AtlasCloud Atlas
Found the solution.
My bad.
I am using a controlling field to populate this picklist and forgot to include all the values to it.
That was dumb of me.

Thanks Shrikant for making me go back to check the basics.
Shrikant BagalShrikant Bagal
cool.
if its resolved issue,please mark as best answer so it will help to other who will serve same problem.
​Thanks!