Replacement for 'IF ISCLEAR(NewChildNode) THEN' in NF 2.60?

Luc_VanDyck
Member, Moderator, Administrator Posts: 3,633
I'm downgrading some C/AL Code, with regards to a VAT Update, to lower NAV versions.
Part of the original code is:
My problem is that the ISCLEAR instruction is not available in Navision Financials 2.60. So how should I replace the part
Part of the original code is:
NewChildNode := XMLNode.ownerDocument.createNode('element', NodeName, NameSpace); IF ISCLEAR(NewChildNode) THEN BEGIN ExitStatus := 1; EXIT; END;
My problem is that the ISCLEAR instruction is not available in Navision Financials 2.60. So how should I replace the part
IF ISCLEAR(NewChildNode) THEN BEGIN ExitStatus := 1; EXIT; END;?
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
0
Comments
-
The way I can think this can be done is to have a COM object that you would pass the NewChildNode and in COM object you could do the check and see.
The other option I can think of is to create a CU with function that you would pass the NewChildNode
Something like this
MyCodeUnit.setNode(NewChildNode);
If MyCodeUnit.RUN then begin
exitstatus := 1
exit;
end;
In the MyCodeUnit you could
OnRun
Mytext := NewChildNode.Text;
If NewChildNode is not instantiated you'll get run time error, which if MyCodeUnit.run will catch.
The other option that you could try is in CU is to do
If Create(NewChildNode) then
something.
Last option is to do exe upgrade.0 -
The VAT update is a legal requirement and Microsoft only offers a fob-file for the last supported NAV versions. Therefore, we need to downgrade this fix to all lower versions.
As your solution requires or a COM object which needs to be installed at every installation, or it requires a new codeunit which needs to be accessible in the customers license files, I think I'll go for the last option ;-)No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
What about a technical upgrade using the 5.0 executables? This way the client can also run Vista and SQL2005.
Off-course they need to be on the enhancement plan to do this.0 -
With last option, I already meant to do a technical upgrade.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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