You need to sign in to do that
Don't have an account?
venkyyy
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.
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.
I have a page which is retreving data through Rest API which is showing in pageblock table, as show in bellow screen.
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.
<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.
<apex:outputPanel rendered = "{!If(record.TestFId != 'No',true.false)}">
Any how you are using controller to do rest callout and parsing the right?
If so, you can iterate the result and filter.