You need to sign in to do that
Don't have an account?
soa
problem in invoking a Apex class from a Button
Hi,
I am Facing problem in invoking a Apex class from a Button. From one of our login I am able to invoke the class, but from the other I am not able to invoke the same class.
Is there any setting required for the same?
Please help me.
Regards
Diti
All Answers
Hi,
I am still facing the same problem. I have enabled the apex class for the appropraite profiles but still I am facing the same problem.
The error which I am getting is:
A problem with the OnClick JavaScript for this button or link was encountered:
{faultcode:'soapenv:Client',faultstring:'No service available for class 'InsertAcc',}
please help me.
Regards ,
Diti
{
Account acc = [select id from account where name = 'Singha' limit 1];
Integer result = [select count() from account];
return(result);
}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
(
"InsertAcc", // class
"InsertAccount", // method
{ //method arguments
}
);
Hi,
Even i am facing the same problem.The code was working fine till i packaged it. I tried includin the name space but the error persists.
Please guide as to how to overcome this issue.
Did you find a solution for this?