function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jbardetjbardet 

close. ONE change needed in (my first!) VF email template.

see question below.

 

 

I need to set one filter for this list showing only line items where Sales Price is not = 0.  help??

.....

 

                 <apex:repeat var="line" value="{!relatedTo.OpportunityLineItems}">

                <tr>

 

                     <td>{!line.Product2}</td>

// It says Product2 is not an OpportunityLineItem field--because it's a lookup field on products. If I do figure out how to list Product2, I also need to strip out numerical values from Product2 below so a prodcut of ABC123 is listed as ABC. how do I do that?!  Note: Can't make the change on the SF customizations side b/c of triggers, custom managed code (quote sync tool) etc.

 

                    <td>{!line.Description}</td>

                       <td> <apex:outputText value="{0,date,MM'/'dd'/'yyyy}">

                        <apex:param value="{!line.Delivery_Date_Final__c}" /> 

                        </apex:outputText></td>

                    <td>{!line.Delivery_Change_Reason__c}</td>

                </tr>

                </apex:repeat> 

            </table>

            

....

 

Richa KRicha K

Try using : opportunityLineItem.PricebookEntry.Name 

jbardetjbardet

alright, very nice. sorry for my ignorance.

 

a bit more of a challenge.. would you know how to remove from the output all numerals?  So i can turn ABC123 into ABC for my table data?

 

Thanks,