Fetch table row conditionally
Content
Hi Experts,
I wanted to render the table rows conditionally and below is the code:
<oj-table scroll-policy="loadMoreOnScroll" data="[[ $application.variables.data]]" columns='[{"headerText":"Process id","field":"Process_ID__c","template":"Process_ID__c"},{"headerText":"Process name","field":"Process_Name__c","template":"Process_Name__c"}>
<oj-bind-if test="[[ $current.row.Account__c === $application.variables.SingleAccountDetails.Account__c]]">
<template slot="Process_ID__c">
<oj-input-text value="[[$current.data]]" readonly="true"></oj-input-text>
</template>
<template slot="Process_Name__c">
<oj-input-text value="[[$current.data]]" readonly="true"></oj-input-text>
</template>
</oj-bind-if>
</oj-table>
But the condition is not working. Can someone help on how to get rows conditionally?