• asadim
  • NEWBIE
  • 335 Points
  • Member since 2009

  • Chatter
    Feed
  • 13
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 88
    Questions
  • 81
    Replies

Hi,

 

We have thousands of attachments that we want to associate to new parents. Exporting them using Data Loader and loading them into Access/Excel will cause bad data imports (data is delimited incorrectly or the Office tool won't be able to open them). In Apex you can't overwrite the parentId field.

 

What's the solution? Any ideas? Thanks!

Anybody knows if there's a way to tell a WF field update formula to look for a string from the end? Something like INSTRREV in Access.

 

Thanks!

In the Offline Mode there's a sync functionality that syncs your local data up to your SF org, and vice versa. I believe there is some complex code in the backend that takes care of data overwrites and conflicts etc. I was wondering if the smarts of this sync function was exposed through the Java API?

 

Thanks.

Hi,

 

I have a page written using dojo. This page works fine on all browsers when loaded locally but doesn't work in IE 8 when loaded from Salesforce (i.e. converted into a VF page with the libraries stored as Static Resources). I get:

 

dojo.body() is null or not an object

 

Any ideas why this is the case? Thanks!

The replacement does not happen at all in this code. Any ideas why?!!

 

 

String res = //some very long string of length 72000 chars
res = res.substring(4000, 5000); //this substring contains carriage return chars \n

res = res.replaceAll('\n', ' ');
system.debug(res);

 

Thanks in advanace!

Hi all,

 

I was running my test cases when I got this error message. The code I was testing is a few months old and it used to pass just fine, so I guess something happened during the Spring '10 release that is affecting my code. And btw, I have no idea what this error even means! It'd be great if someone could shed some light on this issue.

 

Thanks!!

Hi All.

 

I couldn't find any reference to how to upgrade my code.

Editing code on the IDE, saving successfully and redeploying doesn't seem to do the trick.

 

Do I need to change the metadatafile?

Can I just type 18?

 

Thanks.

 

Ben

Hi,

 

I have a few CSS-based pages written in JavaScript and and index file in HTML. These guys work beautifully on my local machine but when I upload them into salesforce as a Static Resource and convert the index page to a VF page all of a sudden the styles get messed up. eg. some font colours change. The CSS files are being loaded fine as the font types and everything is showing correctly.

 

Any ideas? Thanks!

Hi,

 

I have a VF page that simply outputs some text:

 

<apex:page controller="myController" contentType="text/javascript" showHeader="false">
some garbage text
</apex:page>

 Then I have a JavaScript that uses XMLHttpRequest to make a request to the above VF page:

 

var url = "http://na4.salesforce.com/apex/myPage";
xmlhttp.open('GET', url, true);
xmlhttp.send(null);

 Before making the request I make sure that I'm logged in with my salesforce account (so that I don't need to pass user/pass thru the url). The problem is that, I never get anything back. xmlhttp.status is always 0 and xmlhttp.responseText is always blank. Firebug shows the status of the GET request as 200 OK.

 

Any ideas how I should make REST calls to a VF page and get the response back? Thanks!!

 

 

Hi,

 

We have a web service written in Apex that I'd like to access from a JavaScript-based page that is hosted on some server (i.e. not a visualforce page). Any ideas on how I can do that?

 

Thanks.

We used to have an existing package which we had to modify, and now this modification is not getting installed into the client environemnt. Basically the modification in question was a change to the Name Field on a few custom objects (changed the type). The interesting thing is that this change gets sucked into the package with no issues.

 

My question is, if this is the intended behaviour then why was no documentation on this? We are pretty much at a point of no return and we can get screwed big time over this problem.

 

Any help is grealy appreciated.

 

Hi,

 

I'm using the Sforce Office Toolkit and I get the following error when I try logging into a client's system:

INVALID_LOGIN: Invalid username, password, security token; or user locked out.

 

I can login to our developer accounts just fine -it's only the clients that don't work. The credentials that I'm using are 100% correct.

 

Any ideas?

Hi,

 

I have developed an Office add-in which I'm trying to deploy using a MS installer. The issue is that after the installation is done I try to launch my add-in but I get this error:

 

Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154.

 

I've heard that this has to do with the DLL not being registered (DLL is the Office Toolkit DLL). I cannot register the dang thing using regsvr32 either for this error message:

 

"Make sure that yourdll.dll is a valid DLL or OCX file and then try again."

 

So I'm kind of stuck! Any ideas would be appreciated.