<emulator
program="/menu/icecap.aspx"
method="icecaped"Bestemmer emuleringsmetode: simple, advanced eller icecaped (ny).
useHints="yes"Brug 'hints', som er gemt i xml filen: yes eller no.
hintsXMLhive="menu"Hive for xml file med 'hints'.
hintsXMLpath="icecaped.xml"Navn for xml file med 'hints'
numberOfSubfilePagesToStack="2"Antal subfile sider, som skal stacket i grid'en.
defaultOption="2,5,1"NY - Prioteret liste med standard valg muligheder. Bliver valgt ved dobbeltklik på række.
selectTextWhenFieldFocus="yes"NY - Markér tekst ved fokus i felt: yes eller no.
openSubProgramsInWindows="yes"NY - Åbne under programmer i vinduer: yes eller no.
/>
Recognition of subfiles:
<optionText>Used to find the option text (1=select, 2=change, etc.).
<item text="TYPE OPTION" startPosition="1" endPosition="20"/>
...
</optionText>
<optionField>Used to find option field and subfile start.
<item text="OPT" startPosition="1" endPosition="8"/>
...
</optionField>
<subfileEndTextUsed to find subfile end and the position compared to subfile data and function keys.
subfileEndBeforeFKeys="2" subfileEndColumn="79" subfileMoreText="+" dataEndBeforeSubfileEnd="0">
<item text="MERE" startPosition="60" endPosition="132" moreIndicator="yes"/>
<item text="SLUT" startPosition="60" endPosition="132"/>
...
</subfileEndText>
Example of recognition of a subfile saved in the xml file:
<panel id="Arbejd med noter" token="1">
<select>
<when line="12" column="1" length="80" equal=" Valg Typ Nummer Applikation Dato Tekst "/>
</select>
<areas>
<property type="ignoreArea" startLine="1" startColumn="1" endLine="1" endColumn="80"/>
<property type="ignoreArea" startLine="2" startColumn="1" endLine="2" endColumn="80"/>
<property type="area2columns" xPosition="0" yPosition="2" startLine="4" startColumn="1" endLine="7" endColumn="80" columnWidth="" removeLabelDots="true"/>
<property type="area2grid" xPosition="0" yPosition="98">
<menu startLine="9" endLine="10" moreOptionKey="">
<item id="1" text="Opret"/>
<item id="2" text="Revider"/>
<item id="3" text="Kopier"/>
<item id="4" text="Slet"/>
<item id="5" text="Vis"/>
</menu>
<column startLine="12" endLine="12" showOptionField="true" optionFieldColumn="1" optionFieldLength="1">
<item header="Valg" columnStart="2"/>
<item header="Typ" columnStart="7"/>
<item header="Nummer" columnStart="11"/>
<item header="Applikation" columnStart="27"/>
<item header="Dato" columnStart="48"/>
<item header="Tekst" columnStart="59"/>
</column>
<quickOption line="13"/>
<data startLine="14" endLine="21" subfileEndLine="21" subfileEndColumn="79" subfileMoreText="+" subfileBottomText=" "/>
<toolbar>
<item id="F3" text="Afslut"/>
<item id="F4" text="Liste"/>
<item id="F5" text="Opfrisk"/>
<item id="F12" text="Annuller"/>
<item id="F17" text="Udsnit"/>
</toolbar>
</property>
<property type="label" line="24" contentLocation="east"/>
</areas>
<keys startLine="23" endLine="23">
<item id="F3" text="Afslut"/>
<item id="F4" text="Liste"/>
<item id="F5" text="Opfrisk"/>
<item id="F12" text="Annuller"/>
<item id="F17" text="Udsnit"/>
</keys>
</panel>
Changes to 'hints' saved in the xml file:
if vtSaaTitleContains(pVts:'Change customer')
or vtSaaTitleContains(pVts:'Display customer');
// Disable tab closable (ex. critical application)
// In this example the tab close is disable,
// if the customer name = 'System & Metode A/S'
name = vtGetValueFor(pVts : 'Customer Name');
if name = 'System & Metode A/S';
emlAddMetaField ('{+
configOptions:{tabClosable:false}+
}');
else;
emlAddMetaField ('{+
configOptions:{tabClosable:true}+
}');
endif;
<defaults
...
defaultIceCapTheme="default"
/>
<styleMap>
<map attr="20" foreground="hidden" background="black" decoration="none" style=""/>
<map attr="21" foreground="black" background="green" decoration="none" style="background:green;color:black;"/>
<map attr="22" foreground="white" background="black" decoration="none" style="color:#000080;"/>
...
Change style the attributes to the layout you wish. See the standard for styles here: http://www.w3schools.com/css
<automaticScreenScripting>
<!-- English -->
<screen title="Sign Off" action="ENTER" />
<screen title="Attempt to Recover Interactive Job" fieldNo="1" value="90" action="ENTER" />
<screen title="Display Program Messages" action="ENTER" />
<screen title="Sign-on Information" action="ENTER" />
...
Further you can enter the name of your own breakout program for navigation.
<breakOut
navigatorProgram="*LIBL/USERNAVI"
...
You can find an example of a navigation breakout program in the IceCap™ library and source file QSAMPLE.
<defaults
...
defaultTheme="xtheme-gray.css"
/>