Basic Properties - Application
Description
Application level basic properties apply to an entire application.
An application is defined by the content of its definition set folder.
Properties
|
Name |
Description and Comments |
JavaScript |
Shipped default |
|---|---|---|---|
|
autoGUIOn |
The initial state of the AutoGUI feature. Overrides any value set in the TS1 skin by setting the gui_mode variable. |
Yes |
True |
|
defaultTheme |
Default theme to be used when AXES starts up. |
Yes |
None |
|
enableContextMenu |
Determines if right-click on input fields will display the browser’s default context menu. |
Yes. Must return a Boolean value. |
False |
|
ignoreSpacesInScreenId |
Indicates whether to ignore spaces in identifying screen definitions. |
Yes. Must return a Boolean value. |
False |
|
moveableWindows |
Determines if 5250 windows can be moved by the user. This property applies to the TS2 engine only and will have no effect on TS1. |
Yes |
True |
|
onApplicationEnd |
JavaScript code that is to be executed when the browser navigates away from AXES. |
Yes |
None |
|
onApplicationStart |
JavaScript code that is to be executed when the application starts up in the browser. |
Yes |
None |
|
onSignOff |
JavaScript code that is to be executed as the aXes 5250 session is terminated normally after user sign-off. |
Yes |
None |
|
onSignOn |
JavaScript code that is to be executed as the aXes 5250 session is initiated after successful user sign-on. |
Yes |
None |
|
strictLayoutGridForDbcs |
Indicates whether strict layout grid should be used for languages such as Japanese |
Yes |
False |
Notes, Comments and Warnings
You should not use alerts and any other operation that halts or interrupts the execution of JavaScript code during application initialization or termination.
Termination code may not be executed in an abnormal termination.
Most browsers have problems correctly converting mouse co-ordinates when sending events to objects that have been scaled. This can lead to some strange behaviour when dragging a window on a screen that has been scaled to anything other than 100%. In this case, you may want to use the moveableWindows property to prevent window movement.
Examples
Specify this code in the onApplicationStart property:
TRACE("**** MY ONAPPSTART CODE IS EXECUTING. ****");
Specify this code in the onApplicationEnd property:
TRACE("**** MY ONAPPEND CODE IS EXECUTING. ****");
Now execute your aXes application with trace mode turned on.
You should see trace statements indicating that your code has been executed.
See Also
Application Style Collection for Application themes
Can I create a script that runs when my application starts up and when the user has signed on?
How can I hide AXES menu bar and status bar?
