Navision Application Server 101

bhalpin
Member Posts: 309
Hi.
I have found/read the docs on NAS installation on the product CD, and have read posts here about Codeunit 1, but ...
I can't seem to find any docs on what you do in NAS to get it to interract with the codeunit.
Can anyone point me to that little piece of the puzzle I'm missing?
Thank's
Bob
I have found/read the docs on NAS installation on the product CD, and have read posts here about Codeunit 1, but ...
I can't seem to find any docs on what you do in NAS to get it to interract with the codeunit.
Can anyone point me to that little piece of the puzzle I'm missing?
Thank's
Bob
0
Comments
-
This information is all in the manual, but if you've never worked with it it can be confusing
.
NAS is nothing more than a NAV session without a user interface, that runs as a Windows Service. In the NAS manager (which is a regular MMC snap-in) you can set the parameters that it uses to log into the database, such as servername, database name, company name, and startup parameter.
The first parameters are for logging into the system, the Startup Parameter determines what the session does. You program the HASNandler function in codeunit 1 to be able to 'understand' the startup parameter, and from there it can do whatever you want it to do, provided you don't use any object that NAS doesn't work with (dataports, forms).
Now the tricky part, is that you will need to make sure that the user account that is associated with the windows service is a valid NAV user. So you set up "domain\user" as a windows user in NAV and give it the correct permissions to the object that are involved, then you set up the same user in the login tab on the windows server.0 -
Hi Daniel.
Thank's - that's the missing piece - and I've found the relevant documentation.
The last part of this exercise is to have NAS execute a given codeunit once per day at a given time. Any pointers on this would be great.
Bob0 -
You'd have a single instance codeunit, in that codeunit you'd be running a timer event, checking for that particular time. Check out the Job Queue Dispacher codeunit for an example of how to do that.0
-
Right-O. Thank's
Bob0 -
Checking out the how-to section could be usefull: http://www.mibuso.com/howtoinfo.asp?FileID=15.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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