S
spandau66
Guest
Hi, I am encountering an issue with Filtering on the JSDO. When I apply a filter on the Kendo Datasource, the Filter value is not being passed into my API. If I interogate the JSO object in the console, I can clearly see that the Filter stream is there. If I also use Fiddler2, I can see the URL also holds the filter stream. However, on the API read method, the Filter value is always empty (? value). I have stripped the code out and placed into a basic html script: Fiddler2 Result after running: The API Read Method: @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="true"). @progress.service.resourceMapping(type="REST", operation="read", URI="?filter=~{filter~}", alias="", mediaType="application/json"). @openapi.openedge.method.property (name="mappingType", value="JFP"). @openapi.openedge.method.property (name="capabilities", value="ablFilter,top,skip,id,orderBy"). METHOD PUBLIC VOID ReadNL09(filter AS CHARACTER, OUTPUT DATASET-HANDLE phDataset): LOG-MANAGER:WRITE-MESSAGE ("ReadNL09", "NL09"). LOG-MANAGER:WRITE-MESSAGE ("Fetch GL Batch Journals Filter: " + STRING(filter), "NL09"). ..................... As can be seen from the above section of code, I am outputting details to a log file. The contents of the log file always read as: [16/04/19@10:14:00.853+0100] P-010928 T-008984 1 AS-7 NL09 ReadNL09 [16/04/19@10:14:00.853+0100] P-010928 T-008984 1 AS-7 NL09 ? Has anyone come across this before? I can get around the issue by using an Invoke Method and passing in a JSON Object with the filtering values, but ideally I would prefer to use the proper read method passing in the Filter Values. TIA
Continue reading...
Continue reading...