Dialogue Boxes

From Sysgem Support
Revision as of 17:33, 19 January 2011 by Baljemmett (talk | contribs) (Tidy up a few bits)
Jump to navigationJump to search

Some hints for developers working within the Sysgem Enterprise Manager (SEM) environment.

Dialogue Boxes

How to display a dialogue box from a SEM script:

e.g. in a Windows Script (in Perl)

   print "\@{{B Banner - Title\n";
   print "\@{{T 1st Line of information for display inside the box\n";
   print "\@{{T \n";
   print "\@{{T Last line of information\n";
   print "\@{{DI\n";

The "\@{{DI\n" will display the dialogue box as an informational Box.

To display an error box, use: "\@{{DE\n"

To display an warning box, use: "\@{{DW\n"

To display an question box, use: "\@{{DQ\n"

Note that a question box can only be effective if executed from the "(M) Post Processing" script from a Menu option, amd the effect is that if the user selects "Yes" then the remainder of the script will be executed, whereas if the user select "No" then the rest of the script after the print "\@{{DQ\n"; statement will be ignored.