Hello,
I'm working on an API to get the stock of an item variant at a certain location.
As there are some additional data from the item and item variant table I've created the following structure:
API-Page 1 based on item - table
additional fields...
Subpage (Link: Item No):
API-Page 2 based on custom item variant - table
additional fields...
Subpage (Link: Item No, Variant No):
API-Page 3 based on temporary table filled by a Query summing up the remaining quantities
fields: item, item variant, location, Sum(Quantity)
The OnOpenPage-Trigger of API-Page 3 opens the query and inserts into the temporary table.
My challenge: Of course I want to apply the filters to the query before opening it to speed it up. This would be the location (no field in the tables of pages 1 and 2) as well as "indirect" filters e.g. on the item-description on API-Page 1.
Is there any way to get them? Or is there another best pratice?
I'm looking forward to your great ideas and suggestions! :-)
Thanks in advance!