<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sysgem.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Baljemmett</id>
	<title>Sysgem Support - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sysgem.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Baljemmett"/>
	<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php/Special:Contributions/Baljemmett"/>
	<updated>2026-07-05T06:10:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=AUTOCLOSE&amp;diff=377</id>
		<title>AUTOCLOSE</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=AUTOCLOSE&amp;diff=377"/>
		<updated>2012-01-25T16:40:55Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;Tips for developers working within the Sysgem Enterprise Manager (SEM) environment&#039;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;How to automatically close the input form after a transaction is complete.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;AUTO_CLOSE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Normally, the &amp;quot;results pane&amp;quot; remains open after a SEM transaction is compleet, to show the output from the script that has run on the target system. Sometimes, however, it is desirable to close the window automatically as soon as the script has completed on the target server.&lt;br /&gt;
&lt;br /&gt;
Output the following string to standard output from any of the following scripts:&lt;br /&gt;
&lt;br /&gt;
* (M) Fields&lt;br /&gt;
&lt;br /&gt;
* (M) Pre-processing&lt;br /&gt;
&lt;br /&gt;
* (M) Post-processing&lt;br /&gt;
&lt;br /&gt;
* (M) AS400&lt;br /&gt;
&lt;br /&gt;
* (M) Windows / NT&lt;br /&gt;
&lt;br /&gt;
* (M) UNIX&lt;br /&gt;
&lt;br /&gt;
* (M) VMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;String to output:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;@{{AUTOCLOSE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;From a Perl script:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;\@{{AUTOCLOSE\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;From a Korn Shell script:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
    echo &amp;quot;@{{AUTOCLOSE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;From a DCL Shell script:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
    $ write sys$output &amp;quot;@{{AUTOCLOSE&amp;quot;&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Spawning_a_Child_Window&amp;diff=363</id>
		<title>Spawning a Child Window</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Spawning_a_Child_Window&amp;diff=363"/>
		<updated>2011-03-29T22:52:07Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Corrected example of sending VALUE_SV to child window&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;Tips for developers working within the Sysgem Enterprise Manager (SEM) environment&#039;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Spawning a child window in SEM:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
One window can be started from another window by:&lt;br /&gt;
&lt;br /&gt;
*  adding code to the (M) Pre-processing script of menu option in the &#039;&#039;parent&#039;&#039; window&lt;br /&gt;
*  adding script comment in the Main Display Pre-processing script of the &#039;&#039;child&#039;&#039; window&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To Initiate the Spawn Command from the Parent Window...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add the following code in the &#039;(M) Pre-processing script&#039; of the menu option of the parent window:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #&lt;br /&gt;
    #   start another display window, passing along information&lt;br /&gt;
    #   extracted from the selected entries.&lt;br /&gt;
    #&lt;br /&gt;
    #   @{{START_DISPLAY_SCRIPT&lt;br /&gt;
    &lt;br /&gt;
    #&lt;br /&gt;
    #   Don&#039;t display the menu dialog.&lt;br /&gt;
    #&lt;br /&gt;
    #   @{{MENU_OPTION_SILENT &lt;br /&gt;
    #&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_TITLE Child Example\n&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_NEW\n&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_TILED\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To Identify the Child Window...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The following comment is added to the main &#039;Pre-processing&#039; script to identify the display window as the one required. In the example below, the phrase &amp;quot;Child Example&amp;quot; is variable text to identify this particular window. The same text is used in the &amp;quot;\@{{START_DISPLAY_TITLE&amp;quot; output initiated by the (M) Pre-processing script in the menu option of the parent window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #&lt;br /&gt;
    #   @{{AUTOSTART_DISPLAY_TITLE Child Example&lt;br /&gt;
    #&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To Pass Parameters from the Parent to the Child Window...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The following code added to the Parent menu option, in the (M) Pre-processing script, passes parameters to the child window using data from the selected entry in the parent window.&lt;br /&gt;
&lt;br /&gt;
In this example, fields AA and AB of the selected entry in the parent window are sent to the child window:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_PARAM AA $SelectedEntry{0}{AA}\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_PARAM AB $SelectedEntry{0}{AB}\n&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
This will cause the variables $INPUT_AA and $INPUT_AB to be defined in the Main Windows Agent script of the child window.&lt;br /&gt;
&lt;br /&gt;
In UNIX agent scripts - access the Korn shell variables as ${INPUT_AA} and ${INPUT_AB}. &lt;br /&gt;
&lt;br /&gt;
In VMS agent scripts - access the DCL logical names as INPUT_AA and INPUT_AB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To Determine which Agents Should be Started in the Child Window...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The parent window can define which agents should be used when starting the child window. For example, the same agents are used by the child as are selected in entries on the parent window.&lt;br /&gt;
&lt;br /&gt;
There are three different ways of achieving this:&lt;br /&gt;
&lt;br /&gt;
1.  The parent determines the list of agents to be used by the child and the child window starts without any further prompting.&lt;br /&gt;
&lt;br /&gt;
2.  The parent determines the list of agents to be used by the child and the child window opens with the startup window that allows the user to accept or change the list of agents to be connected.&lt;br /&gt;
&lt;br /&gt;
3.  The parent determines the list of agents to be used by the child and the child window opens with the startup window, but the agent button to change the list of agents is greyed out. This would be useful if the startup window has other input fields to be entered, but the agent list should not be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1. Automatically starting the child...&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the (M) Pre-processing script of the parent menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #&lt;br /&gt;
    #  Pass the server list to the child window via a temporary file&lt;br /&gt;
    #&lt;br /&gt;
    my @servers = map $SelectedEntry{$_}{&amp;quot;SV&amp;quot;}, sort keys %SelectedEntry;&lt;br /&gt;
    &lt;br /&gt;
    foreach my $server (@servers)&lt;br /&gt;
    {&lt;br /&gt;
        print &amp;quot;\@{{START_DISPLAY_SERVER $server\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will start the child window automatically and connect it to the selected servers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;2.  Starting the child display with suggested agents, and allowing the user to change the agent selection...&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Sometimes it is desirable simply to default the server list and allow the user to change the default settings before starting the display. To achieve this, script code needs to be added to both the parent menu (M) Pre-processing script and the child startup initialization script:&lt;br /&gt;
&lt;br /&gt;
In the Parent (M) Pre-processing script:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #&lt;br /&gt;
    #  Pass the server list to the child window &lt;br /&gt;
    #&lt;br /&gt;
    my @servers = map $SelectedEntry{$_}{&amp;quot;SV&amp;quot;}, sort keys %SelectedEntry;&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{START_DISPLAY_PARAM SV &amp;quot; . join(&amp;quot;\,&amp;quot;, @servers) . &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
... and in the startup initialize script of the child:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
    #&lt;br /&gt;
    #  set up the connect to agent list&lt;br /&gt;
    #&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{LOAD_SERVERS $VALUE_SV\n&amp;quot;;    # to preselect the same servers as those selected in the parent window&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(** Note: for this to work, the startup window needs to have an input field defined - even if only a field of type &amp;quot;-None-&amp;quot; with no text label!)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;3. Starting the child display with suggested agents, but not allowing the user to change the agent selection...&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to show the startup window, perhaps to allow the user to make an entry in a startup field, but not to allow the user to change the list of selected agents.&lt;br /&gt;
&lt;br /&gt;
To achieve this, the following script line should be added to the startup initialisation script after the print &amp;quot;\@{{LOAD_SERVERS command shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
    print &amp;quot;\@{{LOCK_SERVERS\n&amp;quot;;              # to force these and only these to be used&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
By using the &amp;quot;LOCK_SERVERS&amp;quot; command - the startup window will be shown, but the Agents button will be greyed out.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(** Note: again, for this to work, the startup window needs to have an input field defined - even if only a field of type &amp;quot;-None-&amp;quot; with no text label!)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=User:Baljemmett&amp;diff=33</id>
		<title>User:Baljemmett</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=User:Baljemmett&amp;diff=33"/>
		<updated>2011-01-21T13:28:08Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Created page with &amp;quot;Hello world!  This is Blarney Castle:  640px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello world!&lt;br /&gt;
&lt;br /&gt;
This is Blarney Castle:&lt;br /&gt;
&lt;br /&gt;
[[File:Castle.jpg|640px]]&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=File:Castle.jpg&amp;diff=32</id>
		<title>File:Castle.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=File:Castle.jpg&amp;diff=32"/>
		<updated>2011-01-21T13:26:30Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Test image - inside Blarney Castle.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test image - inside Blarney Castle.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Dialogue_Boxes&amp;diff=11</id>
		<title>Dialogue Boxes</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Dialogue_Boxes&amp;diff=11"/>
		<updated>2011-01-19T17:33:26Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Tidy up a few bits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Some hints for developers working within the Sysgem Enterprise Manager (SEM) environment.&lt;br /&gt;
&lt;br /&gt;
== Dialogue Boxes ==&lt;br /&gt;
How to display a dialogue box from a SEM script:&lt;br /&gt;
&lt;br /&gt;
e.g. in a Windows Script (in Perl)&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;\@{{B Banner - Title\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T 1st Line of information for display inside the box\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T \n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T Last line of information\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{DI\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;\@{{DI\n&amp;quot; will display the dialogue box as an informational Box. &lt;br /&gt;
&lt;br /&gt;
To display an error box, use:    &amp;quot;\@{{DE\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To display an warning box, use:  &amp;quot;\@{{DW\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To display an question box, use: &amp;quot;\@{{DQ\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that a question box can only be effective if executed from the &amp;quot;(M) Post Processing&amp;quot; script from a Menu option, amd the effect is that if the user selects &amp;quot;Yes&amp;quot; then the remainder of the script will be executed, whereas if the user select &amp;quot;No&amp;quot; then the rest of the script after the print &amp;quot;\@{{DQ\n&amp;quot;; statement will be ignored.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=8</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=8"/>
		<updated>2011-01-19T17:28:34Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Add link to developer hints page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to the Sysgem Support wiki&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This wiki is intended to contain useful information for those involved in supporting or customising Sysgem products.  It is currently in an experimental state; for real support issues we recommend that you contact us using our normal support channels:&lt;br /&gt;
&lt;br /&gt;
* [http://www.sysgem.com/support.php Sysgem Customer Support]&lt;br /&gt;
* [http://www.sysgem.com/company.php#contactus Contact Sysgem]&lt;br /&gt;
&lt;br /&gt;
The content on this wiki is visible to everyone, to provide maximum benefit to our customers and colleagues.  However, to add or edit content, a user account is required; if you wish to contribute any information, please contact Sysgem.&lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
Some useful starting points:&lt;br /&gt;
&lt;br /&gt;
* [[Developer Hints]] contains example code for developers working within the SEM environment&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Dialogue_Boxes&amp;diff=5</id>
		<title>Dialogue Boxes</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Dialogue_Boxes&amp;diff=5"/>
		<updated>2011-01-19T17:22:25Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: moved Talk:Main Page to Developer Hints: For now, start a page for hints.  We&amp;#039;ll think about organising it neatly later...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Sysgem Enterprise Manager (SEM) Programmer Hints:&lt;br /&gt;
&lt;br /&gt;
How to display a dialogue box from a SEM script:&lt;br /&gt;
&lt;br /&gt;
e.g. on a Windows Script (in Perl)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;\@{{B Banner - Title\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T 1st Line of information for display inside the box\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T \n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{T Last line of information\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;\@{{DI\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;\@{{DI\n&amp;quot; will display the dialogue box an an informational Box. &lt;br /&gt;
&lt;br /&gt;
To display an error box, use:    &amp;quot;\@{{DE\n&amp;quot;&lt;br /&gt;
To display an warning box, use:  &amp;quot;\@{{DW\n&amp;quot;&lt;br /&gt;
To display an question box, use: &amp;quot;\@{{DQ\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that a question box can only e effective if executed from the &amp;quot;(M) Post Processing&amp;quot; script from a Menu option, amd the effect is that if the user selects &amp;quot;Yes&amp;quot; then the remainder of the script will be executed, whereas if the user select &amp;quot;No&amp;quot; then the rest of the script after the print &amp;quot;\@{{DQ\n&amp;quot;; statement will be ignored.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=3</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=3"/>
		<updated>2011-01-19T16:00:16Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Add note that the wiki is read-only for users without accounts.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to the Sysgem Support wiki&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This wiki is intended to contain useful information for those involved in supporting or customising Sysgem products.  It is currently in an experimental state; for real support issues we recommend that you contact us using our normal support channels:&lt;br /&gt;
&lt;br /&gt;
* [http://www.sysgem.com/support.php Sysgem Customer Support]&lt;br /&gt;
* [http://www.sysgem.com/company.php#contactus Contact Sysgem]&lt;br /&gt;
&lt;br /&gt;
The content on this wiki is visible to everyone, to provide maximum benefit to our customers and colleagues.  However, to add or edit content, a user account is required; if you wish to contribute any information, please contact Sysgem.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
	<entry>
		<id>https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=2</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.sysgem.com/index.php?title=Main_Page&amp;diff=2"/>
		<updated>2011-01-19T15:55:51Z</updated>

		<summary type="html">&lt;p&gt;Baljemmett: Provide introduction on front page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to the Sysgem Support wiki&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This wiki is intended to contain useful information for those involved in supporting or customising Sysgem products.  It is currently in an experimental state; for real support issues we recommend that you contact us using our normal support channels:&lt;br /&gt;
&lt;br /&gt;
* [http://www.sysgem.com/support.php Sysgem Customer Support]&lt;br /&gt;
* [http://www.sysgem.com/company.php#contactus Contact Sysgem]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Baljemmett</name></author>
	</entry>
</feed>