0

I already tried several ways to try this rendered in my code, but the header still show up, and the value is already like the criteria.how to make the header is show/not showing based on the criteria. this is my code:

   <apex:pageBlockTable value="{!arrRateMap[Key]}" var="r" id="ratecardtable">
        <apex:column title="{!r.Notes}">
            <apex:inputCheckbox id="productFlag" value="{!r.isSelected}" rendered="{!r.isDisabled = false}" onchange="updateRatecardFlag({!famCol})"></apex:inputCheckbox>
        </apex:column>
        <apex:column value="{!r.P.Name}"/>
        <apex:column value="{!r.R.Brand__c}"/>
        <apex:column value="{!r.R.Description__c}"/>
        <apex:column value="{!r.P.Family}"/>
        <apex:column rendered="{!CONTAINS(r.P.Family, 'FX')}">
            <apex:facet name="header">
                <apex:outputText value="Xendit Rate BPS"/>
            </apex:facet>
            <apex:outputText value="{!r.R.Xendit_Rate_BPS__c}"/>
        </apex:column>
        
        <apex:column rendered="{!NOT(CONTAINS(r.P.Family, 'FX'))}">
            <apex:facet name="header">Rate Per Txn</apex:facet>
            <apex:outputText value="{!r.R.Rate_Per_Txn__c}"/>
        </apex:column>
        
        <apex:column rendered="{!NOT(CONTAINS(r.P.Family, 'FX'))}">
            <apex:facet name="header">Rate Per TPV</apex:facet>
            <apex:outputText value="{!r.R.Rate_Per_TPV__c}"/>
        </apex:column>
                        
    </apex:pageBlockTable>

enter image description here

the Xendit BPS should not showing up.

1

1 Answer 1

0

There is an open issue with Contains found here, Looking at the open bug if suggests using FIND over contains that is found here

Going into this more, ideally you need to show the logs and make sure the properties are set correctly and visible to the UI. Also highly recommend just re-building this in LWC

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .