• rdg
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies

Hi guys,

 

Still a noob with APEX so any help will be very appreciated.

 

My requirement is that I need to insert an OLI to a new Opportunity created with a certain criteria (depending on record type).

 

The pricebook/product will always be the same.

 

Thanking you guys in advance!

 

 

regards,

 

DG

  • March 12, 2013
  • Like
  • 0

Hi guys,

 

Need help with a complex (for a noob like me anyways) component in a VF email template.

 

Basically the VF code below will;

Display "Dear Contact Name A," if Custom_Field is NOT BLANK

or

Display "Dear Contact Name B," if Custom_Field is BLANK

 

How can I incorporate this in an IF Statement fashion so that;

Display "Dear Sir/Madam," if Account Type equals 'Organisation'

else

action the orginal function.

 

 

<apex:outputText value="Dear {!opportunity.Account.Contact_A}," Rendered="{!IF(ISBLANK(opportunity.Custom_Field), true, false)}" />
<apex:outputText value="Dear {!opportunity.Account.Contact_B}," Rendered="{!IF(ISBLANK(opportunity.Custom_Field), false, true)}" />

 

 

Thank you in advance,

  • February 13, 2013
  • Like
  • 0

Hi there,

 

New to this.

 

Trying a (what probably is so simple) IF statement in a VF email template where I want an output "He" or "She" depending on the a Gender field in a related lookup record.

 

Here is my code which keeps returning a syntax error;

 

<apex:outputText value="{!IF ({!relatedTo.Custom_Contact__r.Gender__c} =='Male', 'He', 'She')}"></apex:outputText>

 

Thank you in advance!

 

 

regards,

 

Al

  • December 09, 2012
  • Like
  • 0

Hi guys,

 

Still a noob with APEX so any help will be very appreciated.

 

My requirement is that I need to insert an OLI to a new Opportunity created with a certain criteria (depending on record type).

 

The pricebook/product will always be the same.

 

Thanking you guys in advance!

 

 

regards,

 

DG

  • March 12, 2013
  • Like
  • 0

Hi guys,

 

Need help with a complex (for a noob like me anyways) component in a VF email template.

 

Basically the VF code below will;

Display "Dear Contact Name A," if Custom_Field is NOT BLANK

or

Display "Dear Contact Name B," if Custom_Field is BLANK

 

How can I incorporate this in an IF Statement fashion so that;

Display "Dear Sir/Madam," if Account Type equals 'Organisation'

else

action the orginal function.

 

 

<apex:outputText value="Dear {!opportunity.Account.Contact_A}," Rendered="{!IF(ISBLANK(opportunity.Custom_Field), true, false)}" />
<apex:outputText value="Dear {!opportunity.Account.Contact_B}," Rendered="{!IF(ISBLANK(opportunity.Custom_Field), false, true)}" />

 

 

Thank you in advance,

  • February 13, 2013
  • Like
  • 0

Hi there,

 

New to this.

 

Trying a (what probably is so simple) IF statement in a VF email template where I want an output "He" or "She" depending on the a Gender field in a related lookup record.

 

Here is my code which keeps returning a syntax error;

 

<apex:outputText value="{!IF ({!relatedTo.Custom_Contact__r.Gender__c} =='Male', 'He', 'She')}"></apex:outputText>

 

Thank you in advance!

 

 

regards,

 

Al

  • December 09, 2012
  • Like
  • 0