Page.RunModal WebServices Callback

nav_studentnav_student Member Posts: 175
edited 2014-02-28 in NAV Three Tier
Hi guys,

i'm working with a WebServices and when i reach this line
PAGE.RUNMODAL(PAGE::"Create Interaction",Rec,"Interaction Template Code");

it gives me an error:
Client Callbacks are not supported on Microsoft Dynamics NAV Business Web Services

I have read this article, and i know that call a Page NAV throws an exception.
http://msdn.microsoft.com/en-us/library/dd301080.aspx


What is the best alternative to this situation?

Best Regards.

Comments

  • MarijnMarijn Member Posts: 69
    Runmodal means that the program will not continue until some kind of user action has completed. When working with webservices, there is no user to interact with forms, pop-ups or whatever the program is waiting for to complete. So, you should never use UI elements when triggering code with webservices. Change your code so you do not need that line. Or at least put IF GUIALLOWED before the RUNMODAL so that line will not execute when called by webservices.
Sign In or Register to comment.