Autofill RecVariable Name in DynamicsNAV 2015
I discovered something quite interesting couple of week back and I thought it was worth sharing.
When you create an object type variable in Microsoft Dynamics NAV 2015 and you leave out the name then NAV will automatically suggest the name based on the subtype. So, when creating variables that are pages, records, reports, codeunit, xmlports, etc. then there is no need to enter a variable name anymore.
Here is how NAV will automatically suggest the name based of the subtype.
As mentioned below screen shot, create a new variable with blank name and enter the datatype and subtype.
Now when leaving the subtype field (Cursor up and down) Dynamics NAV automatically populates the name as subtype where space, special characters etc. have been removed.
If you create a second variable for the same objects it’s get the same name, would have been nice if it had added a ‘2’ to the end or something as mentioned below screen shot.
If we add name to a variable and after enter the datatype and subtype, Dynamics NAV does not populate or replace the variable name entered already, which has shown in below screen shot.
If you wish to discuss regarding this blog, please feel free to drop me an email to email@example.com.