You need to sign in to do that
Don't have an account?

Rendering in apex:outputPanel
vf page:
apex:pageBlockTable value="{!Opportunity}" var="op" align="center" style="border:none;"
apex:column
apex:outputPanel rendered="{!IF(CONTAINS(mapKey,op.name)=True,False,True)}"
apex:commandButton value="Add to LY Prospect List" action="{!show}" rerender="popup" onclick="this.style.visibility = 'hidden' "
apex:param name="OppName" value="{!op.id}" assignTo="{!opid}"/
/apex:commandButton
/apex:OutputPanel
Apex Page:
public string mapkey;
for(Companies com: compList){
if(MrktRatngMap.containsKey(com.ComName)==True){
mapKey=mapKey+' '+com.ComName;
}
}
Q Please let me know the meaning of the statement: apex:outputPanel rendered="{!IF(CONTAINS(mapKey,op.name)=True,False,True)}"
apex:pageBlockTable value="{!Opportunity}" var="op" align="center" style="border:none;"
apex:column
apex:outputPanel rendered="{!IF(CONTAINS(mapKey,op.name)=True,False,True)}"
apex:commandButton value="Add to LY Prospect List" action="{!show}" rerender="popup" onclick="this.style.visibility = 'hidden' "
apex:param name="OppName" value="{!op.id}" assignTo="{!opid}"/
/apex:commandButton
/apex:OutputPanel
Apex Page:
public string mapkey;
for(Companies com: compList){
if(MrktRatngMap.containsKey(com.ComName)==True){
mapKey=mapKey+' '+com.ComName;
}
}
Q Please let me know the meaning of the statement: apex:outputPanel rendered="{!IF(CONTAINS(mapKey,op.name)=True,False,True)}"
All Answers
This means "Command button section would be displayed or hidden depending upon the value returned by contains condtion.
If contains return true, then command button is not displayed, else it will display command button.
Regards
Mohit Bansal