• Nick G.
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies

Hello,

 

I am very new to the Mobile App devloping. I have experimented with the sample apps; mostly with the Hybrid apps. I have been using the Ecipse IDE.

 

My long-term goal is to develop an app that will run on an android 2.2 device. I have been able to run the sample hybrid apps and have tried the apps both on a 2.2 AVD and on an actual 2.2 phone. My problem is that the apps seem to run extremely slow. Is there something that I should be doing differently?

 

Currently I am using the ContactExplorer sample App. I have the android api 4.1.2 associated with the Salesforce SDK and have android api 2.2 associated with the ContactExplorer App. Should I use 4.1.2 with both? Also I have minimum api and target api for ContactExplorer set to 8 (2.2) and have the SalesforeSDK manifest set to the same.

 

Any thoughts on why it might be running so slowly?

 

Nick

Hello,

 

I am using the below email template to send an email to the primary contact of an opportunity once the opportunity has reached a certain stage. I added a contact lookup field to the Opportunity object so that the contact could be shown. The trouble is that when the email is sent, it doesn't send the contacts name rather the id

 

<messaging:emailTemplate subject="Equipment Order Confirmation" recipientType="Contact" relatedToType="Opportunity">

<messaging:htmlEmailBody >
<html>
    <body>
    <STYLE type="text/css">
           TH {font-size: 11px; font-face: arial;background: #CCCCCC; border-width: 1;  text-align: center }
           TD  {font-size: 11px; font-face: verdana }
           TABLE {border: solid #CCCCCC; border-width: 1}
           TR {border: solid #CCCCCC; border-width: 1}
    </STYLE>
        <font face="arial" size="2">
          <p>Dear {! Relatedto.Contact__c},</p>
          <p>The following is a confirmation of your equipment order:</p>
          <p/>
          <p>Pickup Date: {! RelatedTo.Pick_Up_Date__c}</p>
          <p>Return Date: {! RelatedTo.Return_Date__c}</p>
          <p/>
          <p>Pickup Location: {! RelatedTo.Pick_Up_Location__c}</p>
            <table border="0" >
                <tr >
                    <th>Item</th><th>Quantity</th>
                </tr>
            <apex:repeat var="cx" value="{!relatedTo.OpportunityLineItems}">
                <tr>
                    <td>{!cx.pricebookentry.Product2.name}</td>
                    <td>{!cx.Quantity}</td>
                </tr>
            </apex:repeat>
            </table>
            </font>
    </body>
</html>
</messaging:htmlEmailBody>

 

Here is an example of what was sent:

 

Dear 003C000001IDKYcIAP,

The following is a confirmation of your equipment order:

Pickup Date: Fri Feb 24 00:00:00 GMT 2012

Return Date: Tue Feb 28 00:00:00 GMT 2012

Pickup Location:

Item

Quantity

AED Trainer (Generic)

1.0

Kyle Manikin

5.0

Bandage & CPR Training Kit

10.0

Adult Annie Manikin

5.0

Hello,

 

I am beginning to learn visualforce and am stumped at a point in creating a visualforce email template.

 

My hope was to come up with an email template that could be used in the opportunity object so that when I enter a new opportunity with products listed in the opportunity line items related list the contact would receive an email that would act as an order confirmation. I am stuck while trying to figure out how to list the products in the opportunity line items list.

 

Below is what I was attempting to use. I was trying to mirror the use of the repeat component that was used in some example code that I found on developerforce. My problem is that it continues to say that Product is not a standard object of OpportunityLineItems. I see that Product is a lookup field and the field name shows as "Product2". Any thoughts?

 

Thanks, Nick

 

<messaging:emailTemplate subject="Equipment Order Confirmation" recipientType="Contact" relatedToType="Opportunity">
<messaging:plainTextEmailBody >

Dear {!recipient.name},

The following is confirmation of your equipment order:

Return Date: {! RelatedTo.Return_Date__c}

Equipment Requested
          [ Case Number ] - [ Subject ] - [ Email ] - [ Status ]
<apex:repeat var="cx" value="{!relatedTo.OpportunityLineItems}">
         {!cx.Product2}     {!cx.Quantity}
</apex:repeat>
</messaging:plainTextEmailBody>
</messaging:emailTemplate>

Hello,

 

 

I'm working my way through the Force.com workbook in creating the basic warehouse application. It starts by creating a custom object to track merchandise (item) details/quantities/etc. I'm wanting to use something like this in our enterprise edition, but I'm just curious as to why one would want to create this separate object rather than just expanding the Product object which is already a part of the SF editions?

 

Any thoughts?

 

Nick

Hello,

 

I am using the below email template to send an email to the primary contact of an opportunity once the opportunity has reached a certain stage. I added a contact lookup field to the Opportunity object so that the contact could be shown. The trouble is that when the email is sent, it doesn't send the contacts name rather the id

 

<messaging:emailTemplate subject="Equipment Order Confirmation" recipientType="Contact" relatedToType="Opportunity">

<messaging:htmlEmailBody >
<html>
    <body>
    <STYLE type="text/css">
           TH {font-size: 11px; font-face: arial;background: #CCCCCC; border-width: 1;  text-align: center }
           TD  {font-size: 11px; font-face: verdana }
           TABLE {border: solid #CCCCCC; border-width: 1}
           TR {border: solid #CCCCCC; border-width: 1}
    </STYLE>
        <font face="arial" size="2">
          <p>Dear {! Relatedto.Contact__c},</p>
          <p>The following is a confirmation of your equipment order:</p>
          <p/>
          <p>Pickup Date: {! RelatedTo.Pick_Up_Date__c}</p>
          <p>Return Date: {! RelatedTo.Return_Date__c}</p>
          <p/>
          <p>Pickup Location: {! RelatedTo.Pick_Up_Location__c}</p>
            <table border="0" >
                <tr >
                    <th>Item</th><th>Quantity</th>
                </tr>
            <apex:repeat var="cx" value="{!relatedTo.OpportunityLineItems}">
                <tr>
                    <td>{!cx.pricebookentry.Product2.name}</td>
                    <td>{!cx.Quantity}</td>
                </tr>
            </apex:repeat>
            </table>
            </font>
    </body>
</html>
</messaging:htmlEmailBody>

 

Here is an example of what was sent:

 

Dear 003C000001IDKYcIAP,

The following is a confirmation of your equipment order:

Pickup Date: Fri Feb 24 00:00:00 GMT 2012

Return Date: Tue Feb 28 00:00:00 GMT 2012

Pickup Location:

Item

Quantity

AED Trainer (Generic)

1.0

Kyle Manikin

5.0

Bandage & CPR Training Kit

10.0

Adult Annie Manikin

5.0

Hello,

 

 

I'm working my way through the Force.com workbook in creating the basic warehouse application. It starts by creating a custom object to track merchandise (item) details/quantities/etc. I'm wanting to use something like this in our enterprise edition, but I'm just curious as to why one would want to create this separate object rather than just expanding the Product object which is already a part of the SF editions?

 

Any thoughts?

 

Nick