[progress Communities] [progress Openedge Abl] Forum Post: Re: Executing Manualy An...

Status
Not open for further replies.
E

egarcia

Guest
Hello, After creating the JSDOSession, you would create a JSDO instance for your resource (Business Entity). Example: var jsdo = new progress.data.JSDO({name: "Customer"}); Any method that you have exposed as an invoke can then be called using the JSDO. You can invoke the method by name or using the invoke() method in the JSDO. For example, if your method is called "CustomRead" you could use either of the following approaches to call it: jsdo.CustomRead({}); or jsdo.invoke("CustomRead", {}); The difference is that the invoke() method returns a promise to handle the response of the method. Whereas when calling the method by name returns the an object with the result of the operation. You can use an AfterInvoke event to handle the response of invoke operations, whether you call them using the name or the invoke() method. Here is an example passing an input parameter: jsdo.MonthlySales({piYear: 2014}); Take a look at the following examples that use invoke operations: oemobiledemo.progress.com/.../example004.html oemobiledemo.progress.com/.../example015.html oemobiledemo.progress.com/.../example016.html Did you create the JSDO using Kendo UI? If this is the case, then you would need to get the reference to the JSDO from the Kendo UI DataSource using dataSource.transport.jsdo. Please let me know if you need more information.

Continue reading...
 
Status
Not open for further replies.
Top