Options

Webservice in windows service

belenjerbelenjer Member Posts: 3
edited 2011-07-23 in NAV Three Tier
Hello, I created a windows service in visual studio, which consumes a webservice that posted invoices, but when executing I get the following error "dialog box is not open."

I checked all the message, errors and window.open and have the next condition "if not ISSERVICETIER", even then I get the same error.

Suggestions?

Sorry for my English

Comments

  • Options
    SigGunnSigGunn Member Posts: 18
    You also need to check window.update and window.close. The system is hitting window.close somewhere where you have not run window.open

    To enable RTC to show popups and avoid them in web services you also need to check for GUIALLOWED:

    IF GUIALLOWED THEN BEGIN
    // Code running either in classic or RTC client
    IF ISSERVICETIER THEN
    // Code running in RTC client
    ELSE
    // Code runing in classic client
    END ELSE
    // Code running from NAS or Web Service
    IF ISSERVICETIER THEN
    // Code running from Web Service
    ELSE
    // Code running from NAS
  • Options
    belenjerbelenjer Member Posts: 3
    thanks, I miss a window.update in codeunit 700005, now it's works!
  • Options
    ara3nara3n Member Posts: 9,256
    One suggestion I have asked is that all standard code in nav should ignore dialog for nas and web service
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.