I got the following list of integer SelectOptions, and I want to add a String value to the SelectOption list. How can I convert String to Integer to add the String value?
'recordLimit' is an integer value I have declared in the controller.
Any help on this is appreciated.
<apex:pageBlockSectionItem rendered="{!isBuildReport}" >
<apex:outputLabel value="Record Limit" />
<apex:selectList value="{!recordLimit}" size="1" multiselect="false" >
<apex:selectOption itemValue="10" itemLabel="10" />
<apex:selectOption itemValue="50" itemLabel="50" />
<apex:selectOption itemValue="100" itemLabel="100" />
<!-- <apex:selectOption itemValue="All" itemLabel="All" /> -->
</apex:selectList>
</apex:pageBlockSectionItem>
Best Answer
If in All, you want a sumatory of all values you can use that