I have a VF Page like below -- what I am trying to do is hide values appearing in the table if they have a certain tickbox ticked -- so this page is looking at Opp Products - if the Product has the tickbox Forecast ticked I dont want it showing up here in my Table - any ideas?? - I have tried rendered field in a few places but i either get rid of everything or it stops an edit on any product added -- the code is not mine originally but I would like to ammend it to do this.
<apex:page standardcontroller="Opportunity" extensions="Opportunity_Product_Manager_Controller2" title="Opportunity Product Manager" tabStyle="Opportunity" action="{!processPageActions}">
<apex:form >
<apex:ActionStatus id="pleasewait" >
<apex:facet name="start">
<c:Load BackColor="#FFFFFF" borderColor="#FFFFFF" borderSize="2" height="50px" width="180px" Message="Processing..." messageStyle="color:darkred;font-size:10pt;font-family:arial;" ImageUrl="/img/loading.gif"/>
</apex:facet>
</apex:ActionStatus>
<apex:pageBlock title="Opportunity Product Manager" id="OPM">
<apex:pageBlockSection title="Opportunity Details" id="OpportunityDetails">
<apex:pageBlockSectionItem >
<apex:outputLabel value="Opportunity"></apex:outputLabel>
<apex:outputLink value="/{!source.Id}"><apex:outputField value="{!source.Name}"/></apex:outputLink>
</apex:pageBlockSectionItem>
<apex:outputField value="{!source.Closedate}"/>
<apex:outputField value="{!source.Amount}"/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Solution Start Date"></apex:outputLabel>
<apex:outputPanel >
<apex:outputField value="{!defaultbaseRLI.Date__c}" />
</apex:outputPanel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection title="Add Product" id="Data" columns="1">
<apex:pageblockTable value="{!OpportunityProducts}" var="oppProd" >
<apex:column headerValue="" width="30px">
<apex:facet name="header">
<apex:commandButton title="Add Product" value="Add Product" action="{!AddProduct}"/>
</apex:facet>
<apex:commandButton title="Edit" value="Edit" action="{!manageSelectedProduct}" rerender="mess,ProductDetails" status="pleasewait">
<apex:param name="selectedProductId" value="{!oppProd.oli.Id}" assignTo="{!selectedOppProdId}"/ >
</apex:commandButton>
</apex:column>
<apex:column headerValue="Product" value="{!oppProd.oli.PricebookEntry.Name}" />
<apex:column headerValue="Quantity" value="{!oppProd.oli.Quantity}" />
<apex:column headerValue="Total Value" value="{!oppProd.oli.TotalPrice}" />
<apex:column headerValue="Once Off Cost" value="{!oppProd.oli.Once_Off_Cost2__c}" />
<apex:column headerValue="Date" value="{!oppProd.oli.Start_Date__c}" />
<apex:column value="{!oppProd.oli.Product_Solution_Area__c}" />
<apex:column value="{!oppProd.oli.Product_KPI__c}"/>
<apex:column headerValue="" width="30px">
<apex:commandButton title="Remove" value="Remove" action="{!RemoveSelectedProduct}" rerender="mess" status="pleasewait">
<apex:param name="selectedProductId" value="{!oppProd.oli.Id}" assignTo="{!selectedOppProdId}"/>
</apex:commandButton>
</apex:column>
</apex:pageblockTable>
</apex:pageBlockSection>