Dialogue Boxes: Difference between revisions
From Sysgem Support
Jump to navigationJump to search
Baljemmett (talk | contribs) m moved Talk:Main Page to Developer Hints: For now, start a page for hints. We'll think about organising it neatly later... |
No edit summary |
||
| Line 3: | Line 3: | ||
How to display a dialogue box from a SEM script: | How to display a dialogue box from a SEM script: | ||
e.g. | e.g. in a Windows Script (in Perl) | ||
| Line 13: | Line 13: | ||
print "\@{{DI\n"; | print "\@{{DI\n"; | ||
The "\@{{DI\n" will display the dialogue 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" | ||
Revision as of 17:24, 19 January 2011
Sysgem Enterprise Manager (SEM) Programmer Hints:
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 e 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.