FOREACH statement, natural in C#, has been introduced in NAV 2016. It is commonly used in C# to iterate on instances of a structure with an enumerator, which is usually introduced by implementing the
IEnumerable interface. In NAV 2016, you can apply the same statement to enumerable .NET objects.
Now we will collect a list of table fields that have relations to other tables and show them in a factbox page. Data is retrieved from object metadata in the XML format, and
FOREACH comes in handy when iterating on lists of XML nodes:
factboxsubpage. First we will create the
factboxsubpage. Create a page in the ...