You need to sign in to do that
Don't have an account?
Becky Miller 15
Rendering a different header in VF based on the user?
I want the column heading to say "Invoiced" for one group of people and "Actual Sales" for another group of people.
<apex:column headerValue="Actual Sales" rendered={!if(!q.IsProcedural__c,true,false)}">
<apex:outputText value="{!q.Annual_Actual_Sales__c}" style="width:70px" />
</apex:column>
Now this is not rendering anything for anyone. What am I doing wrong?
<apex:column headerValue="Actual Sales" rendered={!if(!q.IsProcedural__c,true,false)}">
<apex:outputText value="{!q.Annual_Actual_Sales__c}" style="width:70px" />
</apex:column>
Now this is not rendering anything for anyone. What am I doing wrong?
All Answers
Try the below Code :
<apex:column headerValue="Actual Sales">
<apex:outputText value="{!q.Annual_Actual_Sales__c}" style="width:70px" rendered = "{!IF(!q.IsProcedural__c,true,false)}">
</apex:outputText>
</apex:column>
If the above code not works then please try to change the if condition as {!IF(q.IsProcedural__c,true,false)} because you are using the not condition soi can't predicate the exact scenarion you are using if the above code works then leave it simply.
Can you please Let me know if it works or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Raj
I have looked on the Quota Field and one field is checked and one field is not checked.
Did you have one checkbox field or two checkbok field in the object because you mention like this below ?
I have looked on the Quota Field and one field is checked and one field is not checked.
Thanks,
Raj