Sunteți pe pagina 1din 1

Using Named Method to invoke a Business Service 1.

Created a Submit button on the Consumer List Applet with method SubmitRecord. When using Named Method you dont need to activate the button by using CanInvokeMethod = TRUE 2. Create a BS

3. On the Consumer BC Added the user property 1. Name: Named Method 1 2. Value: "SubmitRecord", "INVOKESVC", "Consumer", "A Error BS", "error"

Using EventMethod to activate a button Limitation: does not work with user properties a) No need to create an user property. b) No need to write script on PreCanInvoke event c) Just prefix EventMethod with the name of the Method Invoked (property of the control). function BusComp_PreInvokeMethod (MethodName) if(MethodName=="EventMethodSubmitRecord")

S-ar putea să vă placă și