With all the obviousness, while you are writing a custom method on browser or server script, you have cautiously taken care of all the subtleties like :
1) Used theApplication() in Browser script and TheApplication() in Server script.
2) Used return(CancelOperation) at the end of a custom method definition.
3) Set explicitly CanInvoke ="TRUE" in WebApplet_PreCanInvokeMethod for custom method.
But still you end up in the below error in case your code also constitute browser script :
SBL-DAT-00322: The specialized method %1 is not supported on Business Component %2 used by Business Object %3.
Reason : There is a delicate syntactic difference between CancelOperation/ContinueOperation for Browser script and Server script and that difference is :
For Server Script, we write it like
return (ContinueOperation); / return(CancelOperation);
For Browser Script, we enclose it in double quotes like
return ("ContinueOperation"); / return("CancelOperation");
Again this is a simple bit of information that many might have known already, but i found this worthwhile to share. Hope this help !!!
No comments:
Post a Comment