Hi All!
How can I filter Page Item List by Cross-Reference No , I add lookup FlowFiled to Item table , with calFormula (ItemNo = No) but when I filter Item List (choose Cross-Reference No from advanced filter) show only Item which have only one line in Item Cross Referance , how should I set up this additional FlowFiled used for filter?
Answers
The Items list page shows you a list of, well, Items. You have ONE item which can be described in many ways (many item cross references), so it shows up on the list once.
Where is the problem? What do you want to see? A list with mixture of items and item cross references on one page?
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
As You see on the second print screen, in Item Cross Reference exists line with item = 02130090005120 and Cross Reference NO = TEST2 but do not show on item list
Lookup brings you just one value from the other table, usually the first one, and if you filter on the lookup field the result is filtered by the value which was actually brough in, not on values in the lookup table which can be potentially brough in.
In other words if you apply a filter on a flowfield the filter applies AFTER the internal code behind the lookup brings some value from the lookup table.
You need to look at the Item Attributes and the coding behind it, this is functionality what does exaclty what you need.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Maybe new Item List as Worksheet ?? ..
Thx
Add two fields in the Item, one is Cross Reference Exists, a flowfield and another Crosss Reference Filter, flowfilter.
Then in Cross Reference Exists flowfield expression use Crosss Reference Filter, somting like
Then to get the list fitlered for a specific Crosss Reference you need to filter lines for Cross Reference Exists=True, and specific no in Crosss Reference Filter.
But will not be fast, and more data you have in the Item Cross Reference table the slower the filtering will be.
The other way to do this is to build in code a filter expression which includes all the item nos which share the same cross reference, and apply this filter to the item list. This is exactly how the Item Attibutes are implemented
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03