You need to sign in to do that
Don't have an account?
Njanga
Condition expression on vf Pgae pageblocktable
I Want to render content with different css style;
This is my vf code.
<apex:pageblocktable value="{!queryResult}" var="cso">
<apex:column value="{!cso.status}" style="{!if(cso.status == 'complete','background:green;font-weight: bold', 'color:black')}" headervalue="Status" />
</apex:pageblocktable>
This is Working.
Now what i need is to add another condition to check if cso.status == 'in progress' and set a pink background.
I found a way:
This is my code:
<apex:column value="{!cso.status}" style="{!if(cso.status == 'in progress','background:pink;font-weight: italic', 'color:black')};{!if(cso.status == 'complete','background:green;color:white', 'font-weight: italic')}" headervalue="Status" />
All Answers
I found a way:
This is my code:
<apex:column value="{!cso.status}" style="{!if(cso.status == 'in progress','background:pink;font-weight: italic', 'color:black')};{!if(cso.status == 'complete','background:green;color:white', 'font-weight: italic')}" headervalue="Status" />
Very useful. Thanks for sharing. ....bob