[Progress Communities] [Progress OpenEdge ABL] Forum Post: PASOE/REST/DOH Custom .map file

Status
Not open for further replies.
J

jts-law

Guest
I am working on a KUIB app and want to implement a ComboBox with virtual scrolling. Based on the documentation ( Virtualization | Kendo UI ComboBox ), I need to setup a mapper service. The mapper service needs to have a signature like: http://demos.telerik.com/kendo-ui/service/Orders/ValueMapper?values[0]=10661 I've been struggling to implement a REST/DOH service with this signature. The following is what I'm currently trying and it's returning a "Service not found" error. CustList.cls (basic stub method until I see what Kendo sends for data): METHOD PUBLIC INT CustValueMapper(INPUT search_values AS CHARACTER EXTENT, OUTPUT matched_data AS Progress.Json.ObjectModel.JsonObject): MESSAGE "search_values: " search_values[1]. matched_data = NEW JsonObject(). RETURN 200. END METHOD. UI.map (this service only): "/CustValueMapper": { "GET": { "contentType": "application\/json", "entity": { "name": "CustList", "function": "CustValueMapper", "arg": [ { "ablName": "", "ablType": "INTEGER", "ioMode": "RETURN", "msgElem": {"type": "StatusCode", "name": null} }, { "ablName": "search_values", "ablType": "CHARACTER EXTENT", "ioMode": "INPUT", "msgElem": {"type": "QUERY", "name": "values"} }, { "ablName": "matched_data", "ablType": "Progress.Json.ObjectModel.JsonObject", "ioMode": "OUTPUT", "msgElem": {"type": "BODY", "name": null} } ] } } } Test Call: http://localhost:8810/JTS/web/pdo/UI/CustValueMapper?values[0]="Testing" Response: [ { _retVal: "", _errors: [ { _errorMsg: "Not Found", _errorNum: 404 } ] }, { _retVal: "", _errors: [ { _errorMsg: "Service not found for "GET http://localhost:8810/JTS/web/pdo/UI/CustValueMapper?values[0]="Testing""", _errorNum: 0 } ] } ] Anybody have a clue how to configure my method and map file entry to accept this URL? Thanks. Louis

Continue reading...
 
Status
Not open for further replies.
Top