[progress Communities] [progress Openedge Abl] Forum Post: Additional Parameters To Read...

  • Thread starter Thread starter Marko Myllymäki
  • Start date Start date
Status
Not open for further replies.
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~}&param2=~{param2~}", ... METHOD PUBLIC VOID ReadPerson( INPUT filter AS CHARACTER, INPUT param2 AS CHARACTER, // additional parameter OUTPUT DATASET dsPerson): With this change, JSDO automatically adds "&param2=" 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={...}&param2=&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...
 
Status
Not open for further replies.
Back
Top