M
Marko Myllymäki
Guest
I have a simple business entity "Person" which I use as a datasource for a kendoAutoComplete element: var jsdoPersons = new kendo.data.DataSource({ type: "jsdo", transport: { jsdo: "Person" }, serverFiltering: true }); The Person class has a ReadPerson method for returning the dataset and it works as expected. Now, if I wanted to pass other parameters to the method besides the standard filter parameter, how could that be done? Or should I make an invoke method instead? I have changed the ReadPerson method like this: @openapi.openedge.export(type="REST",... @progress.service.resourceMapping(type="REST", operation="read", URI="?filter=~{filter~}¶m2=~{param2~}", ... METHOD PUBLIC VOID ReadPerson( INPUT filter AS CHARACTER, INPUT param2 AS CHARACTER, // additional parameter OUTPUT DATASET dsPerson): With this change, JSDO automatically adds "¶m2=" to the service url but I don't know how to set a value for that additional parameter, it is always empty. So the generated url is like: http://..../Person?filter={...}¶m2=&ts=... How can I set a value for param2? I have tried setting it in DataSource settings and in beforeFill method, but no luck so far.
Continue reading...
Continue reading...