Default values for data service when parameters are not passed

Hello,

I've created a new data service that uses the SunSystems ledger lines endpoint to extract transactions.

The data service has parameters for business unit, ledger and account code, these have been set as not required.

A simple OS App has been created that uses this data service to display the data in a grid.

A new context message has been created based on the SunSystems supplier context with parameters that match the data service.  This has been linked to the OS App.

The new App has then been added to the context panel and add a rule so that it only appears when in the Supplier setup screen is active.  It seems to only work when a supplier is selected but runs for all suppliers (account codes) when a supplier is not selected.

Does anyone know of a way to set default values in my data service so that if a parameter is not passed in the context it doesn't display all run for all account codes?

Any help appreciated.

Thanks

Alex

Parents
  • I don't have access to this API in my environment, so I can't say for sure, but I would assume this is a limitation of the API and not OAD. If your API is supposed to return a list of all the ledger lines, then that is what it will do if there is no additional filters applied. Is this how the API also performs in the gateway when you test it there? Is there any other APIs you can use that require a parameter to filter on?

Reply
  • I don't have access to this API in my environment, so I can't say for sure, but I would assume this is a limitation of the API and not OAD. If your API is supposed to return a list of all the ledger lines, then that is what it will do if there is no additional filters applied. Is this how the API also performs in the gateway when you test it there? Is there any other APIs you can use that require a parameter to filter on?

Children
No Data