M
MTBOO
Guest
Hi, I have an invokable method in my business entity. Catalog description for it is as follows: { "name": "GetWarnings", "path": "\/GetWarnings", "useBeforeImage": false, "type": "invoke", "verb": "put", "params": [ { "name": "dsWarning", "type": "REQUEST_BODY" }, { "name": "plcParameter", "type": "REQUEST_BODY" } ] } I want to call the invoke method and pass in the dset and some additional parameter. The dataset is input-output in my method and want to merge the returned changes. How can I pass the dset in addition to the paramater plcParameter. Trying something like this, but it doesnt work. // add record jsdo.eWarning.add( { EntityType: 'AA', EntityRef: 'BB' } ); // setup param var oParameter = { plcParameter: { EntityType: "Test1", EntityRef: "Test1" } }; var oParameterDS = jsdo._createChangeSet(jsdo._dataSetName, false); jsdo.GetWarnings(oParameterDS, oParameter);
Continue reading...
Continue reading...