• Michael Haddad.ax365
  • NEWBIE
  • 0 Points
  • Member since 2008

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

I'm having trouble calling binding.create on an array of sObjects using the RForce gem for Ruby.  Does anyone have sample code for this?

 

This doesn't seem to work:

 

newLeads = []5.times do newLeads.push({:type => "Lead", :lastName => "Jackson", :company => "Salesforce"})endbinding.create(:sObject => newLeads)

 

Although it works for a single sObject.

 

 

Thanks!

 

Michael 

Is it?  Am I missing something or is it woefully inefficient and tedious?
Hi

I'm getting this error "Time Limit Exceeded.  Your request exceeded the time limit for processing."
in one of my VisualForce pages when executing a method in my controller.  It does not happen every time and I'm not sure I can notice a pattern.  I don't see any information on time limits in the Apex Developer's Guide.  Any idea what's going on here?

Thanks!

Michael

Hi

I assume this is simple enough, but don't want to waste time figuring it out.  I'm trying to render the Name of a Record as a link to the Record in a column of a pageBlockTable.

I'm using this syntax currently:

Code:
<apex:column headerValue="Name">
      <apex:outputLink value="{!lead.Id}">{!lead.Name}</apex:outputLink>
</apex:column>

 Supposing I'm on a na2.salesforce.com, this will output the link as https://na2.salesforce.com/apex/00Q4000000HA9xUEAT.  Obviously I don't want the /apex/ in the URL.  I know I want to use the current server as the value in outputLink and the Record ID as a param, but how do I merge in the URL of the current server?

Thanks!
Hi all

I've created a Visualforce page that utilizes the Google Maps API to both create and display and map and do some geocoding.  The page works, but I get the pop-up error at the beginning that says:

"The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/."

I'm making the request from https://na2.salesforce.com and am using the key ABQIAAAA9wWHEGNCfZW2F9-qCEHgohQ72da4xWLg1N8Ce02Xdu0VxpZsuRQSY7XJzvVLWb1SH9-ZtUeYmXh5_Q.  This is the key Google gives me for https://na2.salesforce.com.  I've also tried it with the key for http://na2.salesforce.com.

This is what my script tag looks like:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9wWHEGNCfZW2F9-qCEHgohQ72da4xWLg1N8Ce02Xdu0VxpZsuRQSY7XJzvVLWb1SH9-ZtUeYmXh5_Q" type="text/javascript"></script>

Again, the page works.  I just get the error when it loads.

Any ideas?

Thanks!!

Michael
Hi

Has anyone been making the declarative metadata calls in PHP (deploy, retrieve, describeMetadata)?   I know these aren't defined in SforceMetadataClient.php.  Does anyone know why this is?  Does anyone know how to make these calls from PHP?

Let's talk Metadata API!

Thanks

Michael
Hi

I am using a simple Apex trigger to prevent the insertion and updating of certain records when they are duplicates and meet a few other criteria.  This is simple enough.  I basically copied the example out of the Force.com Cookbook for preventing the insertion of Leads with duplicate E-mail addresses.

There are a few cases where my client would like duplicate insertion and updating allowed, but to be preceeded by a simple alert nortification (similar to Javascript's alert).  Is there a way to do this with Apex?

Thanks!

Michael
Hi

I assume this is simple enough, but don't want to waste time figuring it out.  I'm trying to render the Name of a Record as a link to the Record in a column of a pageBlockTable.

I'm using this syntax currently:

Code:
<apex:column headerValue="Name">
      <apex:outputLink value="{!lead.Id}">{!lead.Name}</apex:outputLink>
</apex:column>

 Supposing I'm on a na2.salesforce.com, this will output the link as https://na2.salesforce.com/apex/00Q4000000HA9xUEAT.  Obviously I don't want the /apex/ in the URL.  I know I want to use the current server as the value in outputLink and the Record ID as a param, but how do I merge in the URL of the current server?

Thanks!

I'm having trouble calling binding.create on an array of sObjects using the RForce gem for Ruby.  Does anyone have sample code for this?

 

This doesn't seem to work:

 

newLeads = []5.times do newLeads.push({:type => "Lead", :lastName => "Jackson", :company => "Salesforce"})endbinding.create(:sObject => newLeads)

 

Although it works for a single sObject.

 

 

Thanks!

 

Michael 

Hi

I'm getting this error "Time Limit Exceeded.  Your request exceeded the time limit for processing."
in one of my VisualForce pages when executing a method in my controller.  It does not happen every time and I'm not sure I can notice a pattern.  I don't see any information on time limits in the Apex Developer's Guide.  Any idea what's going on here?

Thanks!

Michael

Hi all

I've created a Visualforce page that utilizes the Google Maps API to both create and display and map and do some geocoding.  The page works, but I get the pop-up error at the beginning that says:

"The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/."

I'm making the request from https://na2.salesforce.com and am using the key ABQIAAAA9wWHEGNCfZW2F9-qCEHgohQ72da4xWLg1N8Ce02Xdu0VxpZsuRQSY7XJzvVLWb1SH9-ZtUeYmXh5_Q.  This is the key Google gives me for https://na2.salesforce.com.  I've also tried it with the key for http://na2.salesforce.com.

This is what my script tag looks like:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9wWHEGNCfZW2F9-qCEHgohQ72da4xWLg1N8Ce02Xdu0VxpZsuRQSY7XJzvVLWb1SH9-ZtUeYmXh5_Q" type="text/javascript"></script>

Again, the page works.  I just get the error when it loads.

Any ideas?

Thanks!!

Michael
Using Activesalesforce and a Rails application, is there a way to specify that Activesalesforce use the Session ID and Server URL handed through from a custom link or S-Control?
 
I am looking for a seamless authentication transition from salesforce to my custom app as described in:
 
 
The only documentation I have found on establishing an ASF connection is to hard code the username and password in the database.yaml file of a Rails app.
 
Thanks in advance,
John