Options

Start running a form after a re-boot?

ALopez2710ALopez2710 Member Posts: 47
Is there a way to run a specific form (or report, codeunit, etc.) on a classic client after a re-boot without using the JobQ?

We have a NAV process that runs directy on the SQL server, however, we have weekly maint. that requires the server to be re-booted but then someone has to manually start running a form, just wondering if there is a way to automate this. Thanks.

Comments

  • Options
    bbrownbbrown Member Posts: 3,268
    My qustion is what maintenance activity would require SQL Server to be rebooted weekly?
    There are no bugs - only undocumented features.
  • Options
    kinekine Member Posts: 12,562
    Second question is, why it is needed to run the form at all and why it is not solved through NAS.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ALopez2710ALopez2710 Member Posts: 47
    I'm not the sysadmin. so I probably misstated about the frequency of the server re-boot, it may only be once a month. Also, I was asking specifically about NOT using the NAS (I know I can schedule this over the NAS).

    The reasons I asked about not using the NAS is because we already use it on a diff. machine, I wanted to try another this for another less critical but performance instensive task this way. So, my question is still, does anybody know how to do this without using the NAS?
  • Options
    kinekine Member Posts: 12,562
    Firing NAV URL for this form? :whistle:

    Of course, still I preffer to use NAS... 8) (saved money on one NAS session will be spent on solving other problems like who will click on error message...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    Mike_HWGMike_HWG Member Posts: 104
    Why don't you save money on the extra NAS connection and instead just change your server maintenance documentation to include the extra step?
    Michael Hollinger
    Systems Analyst
    NAV 2009 R2 (6.00.34463)
  • Options
    ALopez2710ALopez2710 Member Posts: 47
    Mike,

    That is exactly what we ended up doing :D .. Was just trying to avoid that if there was a very simple way to launch a client and run a specific form after a re-boot.... anyways, Thanks all for your responses.
  • Options
    ChinmoyChinmoy Member Posts: 359
    I don't probably get the point here, but from what I understood, there is quite a simple way to do this.

    1. Add a shortcut to open NAV in the windows startup.
    2. Add the line FORM.RUN([Form Object No.]); in the end of the CompanyOpen trigger in the ApplicationManagement Codeunit. (You can place this code inside some condition so that the form does not run every time someone opens a NAV client)

    That's all...

    Did I misunderstand you question?

    Chn
  • Options
    kinekine Member Posts: 12,562
    May be you overlooked what I have wrote... URL...

    http://msdn.microsoft.com/en-us/library/dd338856.aspx
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ALopez2710ALopez2710 Member Posts: 47
    Thanks Kamile, this works!
  • Options
    Mike_HWGMike_HWG Member Posts: 104
    any hints on getting that to work with Windows Authentication?

    By the way, the following does NOT work:

    authentication=windows
    authentication=windowsauthentication
    ntauthentication=windows
    ntauthentication=windowsauthentication
    ntauthentication=nt
    ntauthentication=1
    ntauthentication=0
    ntauthentication=yes
    ntauthentication=no
    ntauthentication=true
    ntauthentication=false

    This is my test path:
    navision://client/run?servertype=MSSQL&servername=OLY-SQL-08&database=Nav&company=HWF&ntauthentication=1
    

    EDIT: nevermind, apparently I need hotfix KB979889
    Michael Hollinger
    Systems Analyst
    NAV 2009 R2 (6.00.34463)
Sign In or Register to comment.