You need to sign in to do that
Don't have an account?
Ross James
Visualforce Email - How to filter datatable?
<apex:datatable align="left" var="nt" width="100%" value="{!relatedTo.Network_Trial_Items__r}"> <apex:column width="40%" value="{!nt.Product__c}" headerValue="Product"/> <apex:column width="30%" value="{!nt.USIM__c}" headerValue="USIM"/> </apex:datatable>
The above gives me a great table of related items, but I need to filter and only show a specific category.
How do we do this in a Visualforce email?
Hi Ross,
you can filter columns by using an outputpanel and the rendered attribute, for example to list opportunities which are not closed won:
the column tag also has a rendered attribute but does not want to be included in nothing but datatable or pageblocktable.
That is why I am using plain html to create the table.
Note that you could add your filter directly on the column tags but that is not very elegant.
All Answers
Hi Ross,
you can filter columns by using an outputpanel and the rendered attribute, for example to list opportunities which are not closed won:
the column tag also has a rendered attribute but does not want to be included in nothing but datatable or pageblocktable.
That is why I am using plain html to create the table.
Note that you could add your filter directly on the column tags but that is not very elegant.
Secbos, it worked like a charm, thanks so much.
Secbos, what about if need to show only Opportunities in a specific stage?
Thx
Sorry.. I didn't read the code correctly... ! means equal !NOT means different...