[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to call a function in Openedge on oepas from Kendo javascript

Status
Not open for further replies.
R

richyoder555

Guest
Thank you for the example, this helps a lot. I think I understand all of this but somehow I still am not doing this right. I'm getting this error in the console: Uncaught TypeError: this[name] is not a function Here is the javascript I am trying to use: GeneratePdf(piOrder) { console.log('GeneratePdf'); var jsdo = this.$ds[this.$primeDSName].transport.jsdo; jsdo.invoke("GeneratePdf", { piOrder: piOrder}) .then(function (jsdo, success, request) { console.log("pdf success"); }, function () { console.log("Error while calling invoke operation."); }); } and on the BusinessClass side: @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="invoke", URI="/GeneratePdf", alias="", mediaType="application/json"). METHOD PUBLIC VOID GeneratePdf( INPUT piOrder AS INTEGER): ... END METHOD.

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