If you upgrade to NAV 2009 Executables only (no code)

jwilder
Member Posts: 263
We are in the process of upgrading to NAV 2009 Executables only (so we can take advantage of External Connector without actually going through a big code upgrade). Our current code base is 5.0 and our current executables are 5.0 SPI.
In our testing we realized that form 408 "G/L Balance by Dimension" no longer displays any records. The problem lies in the DimCodeToOption function. It turns out that Case statements involving Code variables to Text variables has changed a little. The following example in 5.0 exits with 1.
CodeVariable := 'G/L ACCOUNT';
CASE CodeVariable OF
'G/L Account' : EXIT(1);
END;
The same example exits with 0 in NAV 2009 which is why the form no longer works. The solution to this is to either change the CodeVariable to a text variable (which is what was done if we had upgrade code as well as Executables) or wrap an Uppercase statement around the Case items liek this:
CodeVariable := 'G/L ACCOUNT';
CASE CodeVariable OF
Uppercase('G/L Account') : EXIT(1);
END;
My conclusion is that case statements involving Code to Text used to be case insensitive but starting in NAV 2009 it is now case sensitive. Has anyone seen any other objects where we might run into this same problem?
In our testing we realized that form 408 "G/L Balance by Dimension" no longer displays any records. The problem lies in the DimCodeToOption function. It turns out that Case statements involving Code variables to Text variables has changed a little. The following example in 5.0 exits with 1.
CodeVariable := 'G/L ACCOUNT';
CASE CodeVariable OF
'G/L Account' : EXIT(1);
END;
The same example exits with 0 in NAV 2009 which is why the form no longer works. The solution to this is to either change the CodeVariable to a text variable (which is what was done if we had upgrade code as well as Executables) or wrap an Uppercase statement around the Case items liek this:
CodeVariable := 'G/L ACCOUNT';
CASE CodeVariable OF
Uppercase('G/L Account') : EXIT(1);
END;
My conclusion is that case statements involving Code to Text used to be case insensitive but starting in NAV 2009 it is now case sensitive. Has anyone seen any other objects where we might run into this same problem?
Jason Wilder
jwilder@stonewallkitchen.com
jwilder@stonewallkitchen.com
0
Comments
-
One correction I would add is that the code in all version is
GLAcc.TABLECAPTION : EXIT(0);
It exists with zero.
As far as text and code comparison. That would be rare and in this case is a bug that was fixed in 2009.0 -
Another solution is to export form 408 from 2009 and load it into your 5.0 database.0
-
Do you have to upgrade to 2009 to abide by the External Connector license?0
-
I don't think this thread is about licensing.0
-
I understand, but it's a valid question related to this. Buying the external connector license (its free until june) will allow you to use it in all versions.0
-
ajhvdb wrote:I understand, but it's a valid question related to this. Buying the external connector license (its free until june) will allow you to use it in all versions.
Oh sorry. The external connector was introduced in 2009. I don't know if it applies to previous version. I'm guessing if you do an exe upgrade to 2009, it would apply, but am not sure. You'll need to talk with Microsoft directly.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions