You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Fetch table row conditionally

edited Sep 2, 2020 11:30AM in Visual Builder 7 comments

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?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!