function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkyyyvenkyyy 

Entire row is not to come based on condition in pageblocktable,

Hi all, 

I have a page which is retreving data through Rest API which is showing in pageblock table, as show in bellow screen.

User-added image

Here my question is i dont want to show the entire rows where the TestFld data is  'No' .
 To achive this : 1) I can not write a SOQL query with where condition because data coming from API, not from custom or standard object.
                        2) Also i can not write the rendered for each column, reason is i dont know what are the exact columns coming from API.
                        **Please provide me any code for an example. 
                         
Thanks in advance, 
Venkyy.
Abhishek BansalAbhishek Bansal
You can use rendered like below :

<apex:pageBloackTable value="{ListFromRestAPI}" var="record">
<apex:outputPanel rendered = {!If(record.TestFId != 'No',true.false)}>
<apex:column.......1/>
<apex:column.......2/>
<apex:column.......3/>
</apex:outputPanel>
</apex:pageBloackTable>

If above code does not help you than please share your VF page code so that i can help you out.

Regards,
Abhishek.
Abhishek BansalAbhishek Bansal
Please correct the syntax of outputPanel :

<apex:outputPanel rendered = "{!If(record.TestFId != 'No',true.false)}">
 
Muthuraj TMuthuraj T
Hi,
Any how you are using controller to do rest callout and parsing the right?
If so, you can iterate the result and filter.