Posts

Showing posts from May, 2017

How to use RecordRef, KeyRef and FieldRef - Dynamics NAV 2017

Image
This is the most unanswered question of all time, so I just thought of writing a blog on this. This blog covers basic understanding of RecordRef, FieldRef and KeyRef in Dynamics NAV 2009 R2 to 2017 versions. As we all know, RecordRef and FieldRef plays an important role while programming in NAV. I hope this blog should help for many beginners. Following are the topics covered in this blog. 1. How and when to use GETTABLE Function and OPEN Function 2. How and when to use RecordRef 3. How and when to use FieldRef 4. How and when to use KeyRef 1. GETTABLE:   This function  gets the table of a Record variable and causes the RecordRef to refer to the same table.  Any filters that are applied to the  RecordVar  are also applied to  the  RecordRefVar .   Another way to select the table to which a RecordRef refers is to use the OPEN Function(RecordRef)  and specify a table number in the parameters. Ex: T...