function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karamala DamodarKaramala Damodar 

how to add picklist values through coding

tell me step by step process what we do first is any settings like that.can any one help how to add picklist values through coding. Iam using metadata but it shows undefined metadata.portnumber like that
 
Swagato RaySwagato Ray
Hi Karmala,

In controller populate the "calobj" as a list. Then in VF pages do this
 
<select>
<apex:repeat var="calculation" value="{!calobj}">
  <option value="{!calculation.Other_Estate_Assets__c}">{!calculation.Other_Estate_Assets__c}</option>
  </apex>
</select>

Regards
Swagata