E
egarcia
Guest
Hello Wolfgang, What type of Data Object are you using? REST or Web transport? Is it your own REST service? Depending on the type of data service, you might be able to APIs in the JSDOSession that allows you to send/receive context to/from the server. To implement the additional capability ppSID, you would need to override the default JFP plugin or add your own plugin "MYJFP". See the following post for some information on the usage of MappingType plugins: community.progress.com/.../69540 In practice, it is easier to add your own "MYJFP" plugin. You need to register the new plugin before the READ operation is performed. Here is a sample function that registers a "MYJFP" plugin which extends the JFP plugin. The MYJFP plugin uses the JSDO.getProperty() API to access a mydata property. (Your ppSID property.) function registerPlugin() { var jfpPlugin = progress.data.PluginManager.getPlugin("JFP"); progress.data.PluginManager.addPlugin("MYJFP", { requestMapping: function (jsdo, params, info) { var requestParams = {}, object = {}; params = jfpPlugin.requestMapping(jsdo, params, info); if (params && typeof params.filter === "string") { object = JSON.parse(params.filter); } object.mydata = jsdo.getProperty("mydata"); requestParams.filter = JSON.stringify(object); return requestParams; } }); } From your code, you would need to access the JSDO from the Kendo UI DataSource. For example, you access the JSDO from the Kendo UI Grid on a row select event using the following code: onRowSelect: function(e) { e.sender.dataSource.transport.jsdo.setProperty("mydata", "TESTDATA"); } Note: You specify the code for onRowSelect in the src/scripts/ /view-factory.js file. On the ABL side, in the Business Entity class, you would access mydata by querying the property in the jsonObject variable. jsonParser = NEW ObjectModelParser(). ... cOrderBy = jsonObject:GetCharacter("orderBy") NO-ERROR. mydata = jsonObject:GetCharacter("mydata") NO-ERROR. Please let me know if you need more information. Cheers.
Continue reading...
Continue reading...