[Progress Communities] [Progress OpenEdge ABL] Wiki Page: Calling Invoke Operations with the JSDO

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Introduction Methods in a Business Entities exposed as invoke operations can be called from a JSDO instance by using the invoke() method: Syntax: invoke ( op-name [ , input-object ] ) : jQuery Promise jsdo.invoke( op-name, input-object).then( success-handler, error-handler ); The response of an invoke operation can be processed using the success and error handlers for the Promise. Note: The response can also be handled by using the AfterInvoke event. The input-object is a JavaScript object where the properties correspond to the input parameters of the method. Example: { param1: param2: ... } The key point here is that when the parameters correspond to a dataset or a temp-table, the value uses the structure of a dataset or a temp-table. This means that you would see name of the dataset and temp-table twice. Once as the name of the parameter as a second time as part of the value in the structure of the dataset or the temp-table. The response of the invoke operation is handled by processing the request.response property passed as parameters to the success and error handlers. The request.response object contains properties corresponding to the output parameters. For dataset and temp-table parameters you would also observe the name of the dataset and temp-table twice. The datasets and temp-tables used in an invoke operation can use same schema as the one one for the resource as well as other schema definitions. Example Resources Progress Data Objects Progress Data Objects Progress Data Objects Progress Data Objects dataSource.transport.jsdo.invoke( ' ).done( ).fail( ); Exa

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