System functions not supported in RTC

hav
Member Posts: 299
Hi All,
I have few of my exisitng developments which makes use of System functions such as SHELL, ENVIRON, CONTEXTURL etc. Earlier these developments were made on NAV 5.0 W1 sp1 and now they have been migrated to NAV 2009 NA SP1.
When i compile few of my codeunits that uses these functions, the compiler generates warning stating that these functions are obsolete in NAV 2009 Application Server.
I went throught NAV 2009 help file and found that these functions are not supported and hence made obsolete in NAV 2009 RTC.
I am not sure which alternative functions should i use to replace these obsolete functions.
Any idea?
Thanks,
Hemant
I have few of my exisitng developments which makes use of System functions such as SHELL, ENVIRON, CONTEXTURL etc. Earlier these developments were made on NAV 5.0 W1 sp1 and now they have been migrated to NAV 2009 NA SP1.
When i compile few of my codeunits that uses these functions, the compiler generates warning stating that these functions are obsolete in NAV 2009 Application Server.
I went throught NAV 2009 help file and found that these functions are not supported and hence made obsolete in NAV 2009 RTC.
I am not sure which alternative functions should i use to replace these obsolete functions.
Any idea?
Thanks,
Hemant
Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
0
Comments
-
For ENVIRON function you can use EnvironFileName function of codeunit 419-3-Tier Automation Mgt.0
-
The reason why these are not implemented in the 2009 Application server is that the logic now runs on the server and not the client. It would create unwanted behavior if these are run on the server (ex: BEEP();
)
I you need to mimic the behaviour on the 2009 Application server you need to write a COM object and set it up in C/SIDE so it is called on the client
MichaelThis posting is provided "AS IS" with no warranties, and confers no rights.0 -
You could also consider using the Windows standard Automation in NAV, declare a Automation variable against "Windows Script Host Object Model" Automation Server.
It contains most of the stuff you need for Client Machine Access, like FILE,SHELL etc.
- SHELL a Like Methods in 'Windows Script Host Object Model'.WshShell"
- Client side FILE Methods in 'Windows Script Host Object Model'.FileSystemObject"
As it is Client side the user as "usual" needs to accept it first time executed.0 -
Dear All,
If we are using the NAV 2009 classic instead of RTC, would the function work?
I am trying to do some customisation at CU440, and i have problem saving the object due to "CONTEXTURL" and "EXPORT".
Any similar function that can be used to replace this "CONTEXTURL" and "EXPORT"?
Thank you.
regards
Rachel0 -
Dear All,
What about the "EXPORT" in CU440?
Thank you.
Regards
Rachel0
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