-
Call the API to get the required filters for the logged in user
- See RFQ Filter for how to get the filters
- See Call Api for how to call the API
-
Run through the filters in the Filter Result
- Display each Filter as per its type
- Provide a List button for the user to click after choosing filters
- Optional: Put together the RFQ status to pass to {gridFilter}. Recommended default value is 'Status|1|New$^$Open' [Note the $^$ is used as an OR operator, the AND operator would be $$$] Available statuses are:
- New
- Open
- Picked
- Activated
- Underwritten
- Lost
- Cancelled
- Closed
- Put together the filters to pass to {pageFilter} and call the list API. (or the DART version if you need the list wrapped.)
-
Run through the items in the result array and display them in a tabular fashion
- The total value will let you know if there are more pages of items than you have retrieved, and allow you to setup paging.
- Getting another page is easy as incrementing the page parameter of the call in step 4
Examples
Request URIs
URI
Sample: For client 1234, get page 1 of all new and open requests with 10 items per page
/list/1234/none/none/Status|1|New$^$Open/none/none/0/10Sample: For client 1234, get page 2 of all new and open requests between 1 Jan 2021 and 1 Feb 2021 with 10 items per page
/list/1234/none/none/Status|1|New$^$Open/DateOfQuote|5|2021-01-01,DateOfQuote|6|2021-02-01/none/1/10