You need to sign in to do that
Don't have an account?
Developement
Show field from Oppy products
Hi All,
I have checkbox field on oppy product that is a formula field. I have created a section for it in VF component. I want checbox "ONG" is checked on any one product . it should show
ONGS : Yes
But currently as per my belwo code, if oppy has 2 products and on product it is checked and on other it is not then it shows
ONGS: Yes
ONGS: No
I want if i have atleast 1prouct where ONG is checke, it should yes/. How to fix the below code.
I have checkbox field on oppy product that is a formula field. I have created a section for it in VF component. I want checbox "ONG" is checked on any one product . it should show
ONGS : Yes
But currently as per my belwo code, if oppy has 2 products and on product it is checked and on other it is not then it shows
ONGS: Yes
ONGS: No
I want if i have atleast 1prouct where ONG is checke, it should yes/. How to fix the below code.
<table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%"> <tr bgcolor="e1e1e1"> <td colspan="2" valign="top" class="emailcopy"><strong>ONG</strong><strong></strong></td> </tr> <apex:repeat value="{!objOpp.OpportunityLineItems}" var="c" > <tr> <td width="37%" valign="top" class="emailcopy">ONGS</td> <td width="63%" align="left" valign="top" class="emailcopy">{!IF(!c.ONG__c=True,'Yes','No')}</td> </tr> </apex:repeat> </table>
All Answers
Since it is a Boolean value you do not need to compare it to True
I want when an Opportunity has more than 1 products and if anyone of the product has ONG__C is checked then it should give me 1 row only of "Yes". And if there are no proucts with ONG__C as checked then it should give me 1 row of "No"