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...
Continue reading...