You need to sign in to do that
Don't have an account?

updating custom object with returned value
Hi,
I have a custom object Custom__c which has custom field Test__c. I have a custom button which calls(onclick javascript) a .net webservice returning some value that I want to update the Test__c with.
Custom__c.Test__c = value didn't work. It says Custom__c is not defined.
I think I need to create a current instance of Custom__C class. But I don't have id for it. Can I create it on Name(field)? and how?
How should I go for it?
Thanks.
Message Edited by NewToSF on 04-15-2008 02:39 PM
Here's an example of both that in action, and also how I tie that into Apex code to do some other stuff.
This revolved around a combination of creating my own WebService in Apex, and then modifying my javascript to pass that variable to it.
Here's the Apex, note the bolded lines. ":sig" refers to the variable I'm passing via javascript.