Since December 15 NAV 2009 R2 has been released and I'm an immediate enthusiast of the "Go To Definition" functionality! But today I found out that there is at least one situation in which this function does not work.
In this example, I created a function in the Item table called "MyFunction()". Now consider this code:
Item.RESET;IF Item.FINDFIRST THEN Item.MyFunction():
When you select "MyFunction" here and run the "Go To Definition" function, it opens the Item table at the start of MyFunction().
However, when you format your code like this:
WITH Item DO BEGIN RESET; IF FINDFIRST THEN MyFunction():END;
The function will not pop up!
So, keep this in mind when you're developing in R2!
Update December 23: I posted this 'feature" as a suggestion on MS Connect. Please vote for it!https://connect.microsoft.com/dynamicssuggestions/feedback/details/633075/go-to-definition-does-not-work-within-with-do-sections
Great catch, MArco. I would file a bug for that if I were you.
So can we assume that Go To definition, can't find to which table this function belongs if WITH statement is used(and Table.Function, where Table is missing because of WITH)?
I had no opportunity yet to test it myself:
What about function calls based on Rec, where the Rec variable is not used, both on tables and forms/pages?
I suppose that would fail as well ...
As I am currently unable to do: Has anybody tested a function call based on Rec, but without typing Rec.?
Yes, ít looks exactly like that.
MS was expected to release VM for this 2009 R2. Is that already done?
There was an announcement on partner source that,
Prepare for Microsoft Dynamics NAV 2009 R2 W1 VM: VM will be released in the week of 20th December.
I haven't found it on Partner Source yet. The only page I found was this one
I guess you mean this page:
It's a pity Go To Definition also doesn't work on fields and variables.
Have added this to your msconnect entry, Marco. Especially fields would be a greater addition having in mind tables like the Item table with dozens of fields.