Options

Job Scheduler NAS

theredmiatatheredmiata Member Posts: 18
edited 2011-08-15 in NAV Three Tier
Hello,

We are currently moving from Nav 3.7 to Nav 2k9 using the RTC as the front and I've got a question concerning the Job Scheduler NAS. It appears that any report that was a dialog window will fail as that command is not allowed thru the JOBQUEUE NAS. With that being the case, is there way for a report or codeunit to tell that it is being executed by the NAS? Sort of like: IF NAS.Executable = TRUE then DIALOGALLOWED = FALSE. If not the only option I can see would be to make copies of each of the reports and make JOBQUEUE 'approved'.

Thanks,

Ian

Comments

  • Options
    Sergii_ChernenkoSergii_Chernenko Member Posts: 14
    NAS is almost like a normal NAV client, but without GUI.
    So, you could use the GUIALLOWED function:

    Checks whether the C/AL code is allowed to show any information on the screen.
    [Ok :=] GUIALLOWED
  • Options
    DakkonDakkon Member Posts: 192
    Specifically an example would be
        IF GUIALLOWED THEN
          Window.OPEN(
            '#1#################################\\' +
            Text002 +
            Text003 +
            Text004 +
            Text005);
    
    You would likewise wrap any other dialog commands.
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
Sign In or Register to comment.