A
Anil Kumar
Guest
Hi Mike, The count function in the KUIB's 'Edit Data Source' dialog gets auto-populated if the Business Entity's method possess annotation as below (operation as count ): @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="count", URI="/count?filter=~{filter~}", alias="", mediaType="application/json"). Sample catalog URI with above annotation is http://oemobiledemo.progress.com/CustomerService/static/CustomerService2.json Catalog file possess operation information as: { "name": "count", "path": "\/count?filter={filter}", "type": "count", "verb": "put", "params": [] }, Resultant datasource json file in KUIB will have the countFnName by default as below: "children": [ { "type": "data-source", "schemaVersion": "1.0", "name": "Customer", "serviceName": "CustomerService", "resourceName": "Customer", "tableName": "Customer", "clientSideProcessing": true, "countFnName": "count", However, we can also have a count operation as an INVOKE. In this scenario, count function (and countFnName in .json file) name is not auto-populated in the 'Edit Data Source' section in KUIB. Hope this helps. Thanks and Regards, Anil Kumar.
Continue reading...
Continue reading...