Dialogue Boxes: Difference between revisions
From Sysgem Support
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
The "\@{{DI\n" will display the dialogue box as an informational Box. | The "\@{{DI\n" will display the dialogue box as an informational Box. | ||
To display an error box, use: "\@{{DE\n" | To display an error box, use: "\@{{DE\n" | ||
To display an warning box, use: "\@{{DW\n" | To display an warning box, use: "\@{{DW\n" | ||
To display an question box, use: "\@{{DQ\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. | 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 10:39, 20 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.
-- Other Platforms --
On UNIX/Linux:
echo "@{{B Banner - Title"
echo "@{{T 1st Line of information for display inside the box"
echo "@{{T "
echo "@{{T Last line of information"
echo "@{{DI"
On OpenVMS:
$ write sys$output "@{{B Banner - Title"
$ write sys$output "@{{T 1st Line of information for display inside the box"
$ write sys$output "@{{T "
$ write sys$output "@{{T Last line of information"
$ write sys$output "@{{DI"