Dialogue Boxes: Difference between revisions
From Sysgem Support
Jump to navigationJump to search
Developer Hints: Display a dialogue box from a SEM script |
Baljemmett (talk | contribs) m Tidy up a few bits |
||
| Line 1: | Line 1: | ||
Sysgem Enterprise Manager (SEM) | Some hints for developers working within the Sysgem Enterprise Manager (SEM) environment. | ||
== Dialogue Boxes == | |||
How to display a dialogue box from a SEM script: | How to display a dialogue box from a SEM script: | ||
e.g. in a Windows Script (in Perl) | e.g. in a Windows Script (in Perl) | ||
print "\@{{B Banner - Title\n"; | print "\@{{B Banner - Title\n"; | ||
| Line 12: | Line 11: | ||
print "\@{{T Last line of information\n"; | print "\@{{T Last line of information\n"; | ||
print "\@{{DI\n"; | print "\@{{DI\n"; | ||
The "\@{{DI\n" will display the dialogue box as an informational Box. | The "\@{{DI\n" will display the dialogue box as an informational Box. | ||
| Line 23: | Line 20: | ||
To display an question box, use: "\@{{DQ\n" | To display an question box, use: "\@{{DQ\n" | ||
Note that a question box can only | 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. | ||
Revision as of 17:33, 19 January 2011
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.