Roger Blanchard
447 posts
Registered:
29 Jun 2018
20 Sep 2022
Link to this post
We have a BE with the following RestAddress.
@RestAddress (type="collection", address="/PurchaseOrder", tables="ePurchaseOrder,ePoLine", id="OrderNum",
fields="ePurchaseOrder.*,ePoLine.*", canRead="true", canUpdate="true", canDelete="false", canCreate="true",
links="PoLine:/PurchaseOrder/~{OrderNum}/PoLine"
This works great for most of what we need. However, we need to pass a query of Stat LE 1 OR Stat GE 5 but this does not appear to be supported by REST.
When we use http://192.168.168.68:8940/OspreyHostBackend/web/Entities/PurchaseOrder?Stat<=2&Stat>=5
We get the following logged in PASOE
Client-Query: for each ePurchaseOrder WHERE ePurchaseOrder.Stat <= "2" AND ePurchaseOrder.Stat >= "5"
What would be the best way to handle this? We have tried creating a REST METHOD where we can define our own query and return back the PDS. However, the response is different than that of the RestAddress.