Chapter 9 Generation Reference Guide (GTL)


set_interactive_mode macro

This macro is used to define if the GTL execution must interact with the user or not. You can decide to display dialog boxes during execution, to execute the entire script without interruption, or to stop execution in case of translation error. This macro can be used for resolving external shortcuts as explained in the example below.

.set_interactive_mode(<interactive-mode>)

The following modes are supported:

Mode Code Description
im_Batch
.set_interactive_mode(im_Batch)
Never displays dialog boxes and always uses default values
im_Dialog
.set_interactive_mode(im_Dialog)
Displays information and confirmation dialog boxes that require user interaction for the execution to keep running
im_Abort
.set_interactive_mode(im_Abort)
Never displays dialog boxes and aborts execution instead of using default values each time a dialog is encountered

Example

You can use this macro when your model contains external shortcuts. If the target model of an external shortcut is closed and if you use the im_Dialog mode, then a dialog box is displayed to let you open the target model.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.