You need to sign in to do that
Don't have an account?
monkeyking
If else condition in Visualforce component
Hello All,
We have a <apex:variable> which renders based on checkbox value.
Now we have a business scenario, where i need to render the above apex variable based on the values of the two fields. Please find my code below,
<apex:variable var="p123" value="p123" rendered="{!v.sObjectList[0]['Pricing_Request__r.Display_Standardized_Rate__c']}">
<tr>
<td>
<b>
Standardized Price
</b>
</td>
<td>
{!(v.sObjectList[0]['USD_Rate__c'])} {!(v.sObjectList[0]['Pricing_Request__r.Standardized_Currency__c'])} per {!(v.sObjectList[0]['Pricing_Request__r.Standardized_UoM__c'])}
</td>
</tr>
</apex:variable>
Here the code is rendered only based on the checkbox value.
Now what i have to do is,
Not to display that field or make it blank for
BU__c: DPT AP, BI AP ENVELOPES & BI AP SURFACES
OR
Pricing_Request_Type__c : ALL Permanent & Spot Price
These two are custom fields. If anyone of these values are true the Apex:variable should not be rendered. If it is not anyone of these values it should run based on the checkbox value.
Can anyone of you help me with the code? Please its very Urgent.
Thanks in advance
Regards,
Rajkumar CV
We have a <apex:variable> which renders based on checkbox value.
Now we have a business scenario, where i need to render the above apex variable based on the values of the two fields. Please find my code below,
<apex:variable var="p123" value="p123" rendered="{!v.sObjectList[0]['Pricing_Request__r.Display_Standardized_Rate__c']}">
<tr>
<td>
<b>
Standardized Price
</b>
</td>
<td>
{!(v.sObjectList[0]['USD_Rate__c'])} {!(v.sObjectList[0]['Pricing_Request__r.Standardized_Currency__c'])} per {!(v.sObjectList[0]['Pricing_Request__r.Standardized_UoM__c'])}
</td>
</tr>
</apex:variable>
Here the code is rendered only based on the checkbox value.
Now what i have to do is,
Not to display that field or make it blank for
BU__c: DPT AP, BI AP ENVELOPES & BI AP SURFACES
OR
Pricing_Request_Type__c : ALL Permanent & Spot Price
These two are custom fields. If anyone of these values are true the Apex:variable should not be rendered. If it is not anyone of these values it should run based on the checkbox value.
Can anyone of you help me with the code? Please its very Urgent.
Thanks in advance
Regards,
Rajkumar CV