Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

GUIALLOWED Function

Microsoft Dynamics Nav 2009

Checks whether the C/AL code is allowed to show any information on the screen.


[Ok :=] GUIALLOWED

Type: Boolean

If the return value is true, then the C/AL code is running on a C/SIDE client and the GUI is available.

If the return value is false, then the C/AL code is running on Microsoft Dynamics NAV Application Server and no GUI is available.

User Portal Application Server accepts GUIALLOWED.

This example shows how to use the GUIALLOWED function.

This example requires that you create the following text constant in the C/AL Globals window.

Text constant ENU value

Text000

Code is running on a C/SIDE client.

IF GUIALLOWED THEN
 MESSAGE(Text000);

If the code runs on a C/SIDE client, which means that the user interface is available, a message box will appear with the following message.

Code is running on a C/SIDE client

If the code runs on Microsoft Dynamics NAV Application Server, the message will not be displayed.

NoteNote

If the MESSAGE Function (Dialog) or the ERROR Function (Dialog) is called when the code is running on Microsoft Dynamics NAV Application Server, the message is written to the event log of the operating system. For more information about message logging, see the manual Installation & System Management: Microsoft Dynamics NAV Application Server.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.