It's hard for me to understand what is happening here. I am trying to copy some javascript onClick for a button in a Force.com list view for a custom object. Here is js.
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")}
var myURL = sforce.apex.execute("MyWebServices", "myUrl", {});
and here is the web service I'm trying to call.
global class MyWebServices {
webservice static String myUrl(){
return 'www.foo.com';
}
}
When I click the button, I get a small pop-up warning:
"Problem with JavaScript OnClick for this button or link: Unable to call the 'execute' method from undefined." When I repeat the sforce members, there is no "vertex".
, , . . , script script , . ?
: () - , () - Foo__c.
:
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
alert( sforce.apex.execute("HammockWebServices", "crossCoverageUrl", {}));
, Foo__c . REQUIRE... .
, , , :
JavaScript
OnClickJavaScript
, , javascript? (, ...)