Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
The form engine tests if the form implements the SysIFilterProvider interface. It then uses the parmFilter method to know what it has to filter. It does this based on metadata and relies on the fact that the EDT used in the call to createFilterValueToString exists on the tables in the tile and section lists in the workspace.
This is why this adjusts the tile count as the filter is changed, but doesn't filter the service orders list.
You may also be surprised that the form engine knows how to build a lookup when all we have specified is the data type. This is determined by looking at the EDT reference table and the autoLookup field group on the table.
When applying this filter pattern, you may need to adjust the Copy Caller ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access