• Michael Delucca
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hi All!

I am trying to retrieve input field values from a visualforce page and pass them into the pages controller - 

I've declare the values on the top level of the controller:  public string CreditCard {get; set;}
I then referenced them in the visualforce page:   <apex:inputText label="Credit Card" value="{!CreditCard}" />  
and then tried to pass them into the controller method:  payment.fw1__Credit_Card_Number__c = CreditCard;


However, I get the following error:
       "Error: PaymentResoCtrl Compile Error: Variable does not exist: CreditCard at line 149 column 46"

Aditionally, if I try to declare/instantiate the variable within the method as seen below, I get a null pointer error.
        string CreditCard;

Can anyone help me figure this out? I'd really appreciate help and will definitely upvote any solution.

Thank you everyone! Have a great day! 

 

Hi Everyone!
I have been doing a lot of research and haven't found an answer that suits my needs yet and thus would greatly appreciate any input. I am interested in creating an email template (most likely visual force and custom controller) that can fetch multiple reservation records for a single account object. 
Specifically- For each account (custom object called Viper in this scenario), I want to be able to access each reservation listed under their account and display them individually. 

Our current Salesforce setup includes:
Two (2) custom objects w/ a master-detail relationship
Object One – “Vipers” holds the customer contact information (master)
Object Two – “Reservations” holds the customers reservation information (child)
Any “Viper” record can have multiple “reservation” records attached.


Rough example of what I want below: 

  1. For Account(Viper)
    1. Reservation #1 object details
      1. all desired fields from this reservation 
    2. Reservation #2 object details 
      1. all desired fields from this reservation

Thank you for your time everyone! I really appreciate it! 

Hi Everyone!

I would greatly appreciate some help with the following problem. I've included a screenshot as a reference as well as my code below: User-added image

<messaging:emailTemplate recipientType="Contact"
    relatedToType="Account"
    subject="Case report for Account: {!relatedTo.name}"
    replyTo="weglinj@unlv.nevada.edu">

    <messaging:htmlEmailBody >
        <html>
            <body>

            <h1 style="color: #5e9ca0;">VIP Vegas Quote:</h1>
<h2 style="color: #2e6c80;"><strong>{!Viper__c.First_Name__c} {!Viper__c.Last_Name__c}'s VEGAS TRIP</strong>:</h2>
<p>Date: {!Reservations__c.Reservation_Date__c}<br />Venue: {!Reservations__c.Venue_1__c}<br />DJ / Performance: (Insert DJ/Performance)</p>
<li>Free 24/7 Concierge Service (i.e. dinner reservations, show tickets, Vegas attractions, and gentlemen's clubs/ male reviews)</li> 
<li>VIP Personal Hosted Entry for {!Reservations__c.Guys__c} gentlemen, and {!Reservations__c.Girls__c} ladies into {!Reservations__c.Venue_1__c}. No lines... No wait...(11:30pm Arrival)</li>
<li>{!Reservations__c.Minimum1__c} USD Alcohol and Beverage Credit (includes all standard mixers)</li>
<li>VIP Table- {!Reservations__c.Req_Table__c}-{!Reservations__c.Req_Section__c}</li>
<li>Price Includes All: State Taxes, Entertainment Taxes, Service Fees and Gratuities</li>
</ul>
<p>Package Total: {!Reservations__c.Package_Total__c} USD / {!Reservations__c.Price_Per_Person__c} based on {!Reservations__c.Group_Size__c} patrons</p>

            </body>
        </html>
    </messaging:htmlEmailBody>
</messaging:emailTemplate>
Hi Everyone!

I would greatly appreciate some help with the following problem. I've included a screenshot as a reference as well as my code below: User-added image

<messaging:emailTemplate recipientType="Contact"
    relatedToType="Account"
    subject="Case report for Account: {!relatedTo.name}"
    replyTo="weglinj@unlv.nevada.edu">

    <messaging:htmlEmailBody >
        <html>
            <body>

            <h1 style="color: #5e9ca0;">VIP Vegas Quote:</h1>
<h2 style="color: #2e6c80;"><strong>{!Viper__c.First_Name__c} {!Viper__c.Last_Name__c}'s VEGAS TRIP</strong>:</h2>
<p>Date: {!Reservations__c.Reservation_Date__c}<br />Venue: {!Reservations__c.Venue_1__c}<br />DJ / Performance: (Insert DJ/Performance)</p>
<li>Free 24/7 Concierge Service (i.e. dinner reservations, show tickets, Vegas attractions, and gentlemen's clubs/ male reviews)</li> 
<li>VIP Personal Hosted Entry for {!Reservations__c.Guys__c} gentlemen, and {!Reservations__c.Girls__c} ladies into {!Reservations__c.Venue_1__c}. No lines... No wait...(11:30pm Arrival)</li>
<li>{!Reservations__c.Minimum1__c} USD Alcohol and Beverage Credit (includes all standard mixers)</li>
<li>VIP Table- {!Reservations__c.Req_Table__c}-{!Reservations__c.Req_Section__c}</li>
<li>Price Includes All: State Taxes, Entertainment Taxes, Service Fees and Gratuities</li>
</ul>
<p>Package Total: {!Reservations__c.Package_Total__c} USD / {!Reservations__c.Price_Per_Person__c} based on {!Reservations__c.Group_Size__c} patrons</p>

            </body>
        </html>
    </messaging:htmlEmailBody>
</messaging:emailTemplate>