How does a program detect at runtime whether it is running standalone GUI, thin client or with Web Direct 2.0?
To determine where the user interface is running, whether standalone (Java Swing), thin client or in a web browser (Web Direct 2.0), add the following to your program:
01 GUI-FACTORY-NAME PIC X(44) VALUE SPACES. 88 IS-JAVA-SWING VALUE SPACES. 88 IS-WEB-DIRECT-2-0 VALUE
88 IS-CHARACTER VALUE
FROM ENVIRONMENT "guifactory.class".
and then you can test for the UI type using the condition variables. For example, to test for Web Direct 2.0:
IF IS-WEB-DIRECT-2-0 THEN
If IS-JAVA-SWING is true then use the following code to determine whether the Java Swing GUI is running locally or remotely via thin client:
ACCEPT TERMINAL-ABILITIES FROM TERMINAL-INFO
IF IS-REMOTE THEN
by: Veryant Support
This question has been viewed 9292 times so far.
Here to View all the questions in isCOBOL General
There are no attachment file(s) related to this question.
There are no user comments for this question. Be the first to post a comment. Click Here