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

Filtering the StandardSetController in VisualForce
Is it possible to an a filter in this VF code to limit the Contact to just those where coontact customer field AtRisk__C = True. Don't want to do any more code.
<apex:page standardController="Contact" recordSetVar="cont">
<apex:pageBlock title="At-risk Contacts">
<apex:pageBlockTable value="{!cont}" var="c">
<apex:column value="{!c.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
<apex:page standardController="Contact" recordSetVar="cont">
<apex:pageBlock title="At-risk Contacts">
<apex:pageBlockTable value="{!cont}" var="c">
<apex:column value="{!c.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Sorry for this issue you are encountering.
May I suggest you please check with below link from the forums community with a similar discussion which might help.
- https://developer.salesforce.com/forums/?id=906F0000000kEu5IAE
Please let us know if this helps.Regards,
Nagendra
I think you can check condition in "rendered="{!IF(AtRisk__C), true, false)}".
If i get it correct do you need something like:
Just looking to put a filter on the standard object in a VF screen