[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: JSDO request

Status
Not open for further replies.
T

Tim Hutchens

Guest
Hi Darren, From this article in the docs: Progress Data Objects "The invocation method passes any ABL input parameters as properties of a single object parameter." I think this is a structured approach so that the JSDO can make calls to a data service the same way regardless of the number of inputs (0, 1, 2+). Also, input parameters (of the method) are processed differently than URL parameters. See below example catalog snippet of ours that shows the "filter" (URL parameter) is a "type" QUERY vs the dsjc_work_schedule (dataset method input parameter) is a "type" REQUEST BODY. { "name": "SubmitEvents", "path": "\/SubmitEvents", "useBeforeImage": true, "type": "submit", "verb": "put", "params": [ { "name": "dsjc_work_schedule", "type": "REQUEST_BODY" }, { "name": "dsjc_work_schedule", "type": "RESPONSE_BODY" } ] }, { "name": "count", "path": "\/count?filter={filter}", "useBeforeImage": true, "type": "invoke", "verb": "put", "params": [ { "name": "filter", "type": "QUERY" }, { "name": "numRecs", "type": "RESPONSE_BODY" } ] }, Hope this helps, Tim

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