• BJames
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 3
    Replies
Hello,

  I recently downloaded the EMail2Case program and got it compiling on my machine.  I was asked to make some modifications to the default logic of the program.  Using what I knew of the Partner WSDL and how I have accessed it in the past I figured it would be an easy task.

  Since I'm posting here you know how that turned out. For my changes I need to make a few queries and extract data from the QueryResult object to process. All reasonable goals. In all the samples and code that I have, the method get_any() is used everywhere... however in the Email2Case project that method is not on the SObject object.

This is but one of many solutions that use get_any().
((SObject)user.get_any()[1].getObjectValue()).get_any()[0].getValue()

  My question to all of you is this... just using the Email2Case.zip, Ant 1.7.0 and Java 1.5, how would you get at the data that you query for?

Thanks,
-=Bryan
  • September 12, 2007
  • Like
  • 0
Referencing the text below... are there some pointers or better yet, tutorials on how to use dojo to mimic the bind method that was removed from the winter 07 release?

Thanks,
Bryan

>The bind function will no longer exist in the winter 07 >ajax toolkit. A better solution would be to create a >dojo or yahoo yui widget to properly encapsulate the >appropriate behavior.

>Dave
>Developer Program Manager
>BLOG - blog.sforce.com
  • February 14, 2007
  • Like
  • 0
Is there any way to keep IE from popping up this "Alert" when using an Scontrol?



I tried putting the Scontrol in a popup window with no content around it at all... and still I received this alert...
When I click "No" it still works, however it is quite annoying and no matter how much I try to explain it, my customers especially my financial sector customers are very nervous.

-=Bryan

Update
I found out the line that's causing the alert to show up.
It's the sforceClient.init(...)
Also interesting is the order in which the coded alerts show up in.. their display order is denoted by the number at the beginning.

Code:
function initPage() {
  //Initialize the connection to salesforce.com by setting the sessionid and the
  //soap endpoint in the init call
  alert("1 initPage::before sforceClient.setLoginUrl"); 
  sforceClient.setLoginUrl("https://www.salesforce.com/services/Soap/u/7.0");
  alert("2 initPage::before sforceClient.registerInitCallback");
  sforceClient.registerInitCallback(startUp);
  alert("3 initPage::before sforceClient.init");
  sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}", false); //this line throws the security alert
  alert("5 initPage::after sforceClient.init");
}

//=======

function startUp() {
  alert("4 startUp");
}

 

Message Edited by BJames on 05-03-200611:03 AM

I've scoured the sforceclient 3.3 source… I cannot find the javascript equivalent of

// Create assignment rule
AssignmentRuleHeader assignment = new AssignmentRuleHeader();
assignment.useDefaultRule = true;
sf.AssignmentRuleHeaderValue = assignment;

I'm trying to fire off an assignment rule while updating a case record.

-=Bryan

I'm trying to figure out what errors I need to handle in my application and  a question came up that "...is it possible for an async call to the query method to timeout"?

  I looked through the community and googled around and could not find much!

-=Bryan


  • April 20, 2006
  • Like
  • 0
Hello,

  I'm attempting to load an image into my scontrol by storing the image in my documents tab. I then get the reference to it as so... https://na1.salesforce.com/servlet/servlet.FileDownload?file=01530000000AY1V . To top it off it displays as it should within the browser via the direct URL.
 
  However when I make that URL an <img src=""> it always comes back as "Undefined"...  
 
  Any thoughts?
 
Thanks,
-=Bryan
  • April 20, 2006
  • Like
  • 0

Anyone out there have any information they can share about using the Dojo Toolkit in an scontrol?

Specifically I'm attempting to use the editor widget and I have the dojo.js file installed as a document and I'm referencing it via the document URL.  However I cannot seem to get it recognized and rendered... 

Any ideas?

-=Bryan

  • April 10, 2006
  • Like
  • 0

In the beta1 and 2 versions of the API getClassName() was a valid method on the queryResult object.
I was using it to ensure that a the call was successful and contained no errors... 

What is the equivalent in beta 3.3?

Thanks,
Bryan

Message Edited by BJames on 03-23-2006 11:57 AM

Message Edited by BJames on 03-23-2006 11:57 AM

  • March 23, 2006
  • Like
  • 0
Is there any way to keep IE from popping up this "Alert" when using an Scontrol?



I tried putting the Scontrol in a popup window with no content around it at all... and still I received this alert...
When I click "No" it still works, however it is quite annoying and no matter how much I try to explain it, my customers especially my financial sector customers are very nervous.

-=Bryan

Update
I found out the line that's causing the alert to show up.
It's the sforceClient.init(...)
Also interesting is the order in which the coded alerts show up in.. their display order is denoted by the number at the beginning.

Code:
function initPage() {
  //Initialize the connection to salesforce.com by setting the sessionid and the
  //soap endpoint in the init call
  alert("1 initPage::before sforceClient.setLoginUrl"); 
  sforceClient.setLoginUrl("https://www.salesforce.com/services/Soap/u/7.0");
  alert("2 initPage::before sforceClient.registerInitCallback");
  sforceClient.registerInitCallback(startUp);
  alert("3 initPage::before sforceClient.init");
  sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}", false); //this line throws the security alert
  alert("5 initPage::after sforceClient.init");
}

//=======

function startUp() {
  alert("4 startUp");
}

 

Message Edited by BJames on 05-03-200611:03 AM

Anyone out there have any information they can share about using the Dojo Toolkit in an scontrol?

Specifically I'm attempting to use the editor widget and I have the dojo.js file installed as a document and I'm referencing it via the document URL.  However I cannot seem to get it recognized and rendered... 

Any ideas?

-=Bryan

  • April 10, 2006
  • Like
  • 0