Navision Application Server Newbie Question

renor321
renor321 Member Posts: 11
Hi,

I'm pretty new to Navision and to NAS. My company currently has a report that is run nightly by a scheduled task in Windows. We want to start doing this by using Navision Application Server, but I have no idea where to start. Can someone please direct me to online resources that can assist in this, or give me some direction as to how to get started?

Thank you very much.

Comments

  • Ian_Piddington10199
    Ian_Piddington10199 Member Posts: 167
    Hi there

    You would need to make a number of changes to the system. Application server is designed to business logic(ie NAV Code) so you would need to set up a way of knowing what report you need to run, any paramters the report requires etc. There could be a number fo ways of doing this and I am sure various people will suggest all sorts of different methods, a lot depends on the requirements of the report itself.

    You would then need to add code to Codeunit 1 to tell the NAS what it is ment to do absed on its start up parameter. This is likely to be a call to a single instance codeunit that repeatedly executes the logic required to run the report.

    You would then need to install a NAS configure it to access the correct database and company. Set the startup parameter, and set the NAS to log in as a 'known' user, ie the account it runs under would need to be in the Windows users of your database with sufficiant roles to allow it to do the job required.

    hope that helps....at least a little bit.

    Ian
    Regards

    Ian
  • Waldo
    Waldo Member Posts: 3,412
    Are you running 5.0?

    There you've got the "Job Queue" ... a nas-based scheduler. You still have to foresee something to "feed" your reports with filters (if necessary).

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • DenSter
    DenSter Member Posts: 8,307
    If you're on 5.0 listen to Waldo, it is standard functionality. Otherwise:

    You would need to learn about two things:
    1: Job Scheduler, which is part of the Service Management granule. I think you can purchase it separately though. Figure out how it works, because you'll need that part later

    2: How to implement new functionality in NAS. There's a document in the doc folder that tells you about NAS. You need to know about single instance codeunits, and how to launch that single instance codeunit from a new instance of NAS.

    Then you will have to implement the Job Scheduler code in a single instance codeunit instead of on a form, link it to NAS, and there you have it.

    Or, you can purchase a number of 3rd party product that does this for you, I think Waldo can help you find one :mrgreen:
  • Waldo
    Waldo Member Posts: 3,412
    DenSter wrote:
    Or, you can purchase a number of 3rd party product that does this for you, I think Waldo can help you find one :mrgreen:

    I surely can :mrgreen:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • renor321
    renor321 Member Posts: 11
    Thank you all for your responses to this. I really appreciate all of your help!!
  • houdain.lemagicien
    houdain.lemagicien Member Posts: 1
    Hi there !!

    I'm trying make NAS works on local with an fdb database. I'm running Navision 4.01. I've got errors in my event handler when I try to start the NAS service : The TCP/IP connection's 'host' is not answering (TCP/IP error ECONNREFUSED).

    In codeunit1, I'm just trying to display a message like following.
    NASHandler(NASID : Text[260])
    ParamStr := UPPERCASE(NASID);
    MESSAGE(ParamStr);
    
    So nothing complicate !!

    My NAS(in Navision Application Server Manager) parameters are
    Database Server Name : <my computer name> (I also tried localhost)
    Database : C:\directory\file.fdb (I also tried to leave it blank)
    Company Name : CRONUS International Ltd. (the well known company)
    Start-up parameter : NAS or NEP-1(read this in another forum)
    Net Type : TCP/IP
    Object Cache Size : 8000

    I did not configure a different account for NAS as far as I don't think I need it for what I'm trying to do.

    What do you think ?

    Thanks by advance !