Code To: Iterate through Map in Salesforce
string tempname='';
string tempdesc='';
Map<String,String> mapObj = new Map<String,String>();
For(String tempVarialbe: mapObj.ketset())
{
tempname= tempVarialbe; [To get the KEY VALUE]
tempdesc= mapObj.get(tempVarialbe); [Using Key value to get the corresponding VALUE]
}
Code To: Use 'Render' property in Visualforce page - Conditionally rendering
We can have a field evaluated based on multiple condition.
Eg : <apex:inputField id="xxxif2" value="{!Object.Fieldtobedisplayed1}" rendered="{IF(Object.picklistfieldapiname1 ='picklist value 1' || lead.Buyer_Type__c ='picklist value 2'
,true,false)}"/>
Comments
Post a Comment