Macro with Substitution Variables

Use this board to ask questions or have discussions with other Atrium users.
Post Reply
smhenriques
New User
Posts: 1
Joined: Wed Dec 26, 2012 7:57 am
First Name: Susana
Last Name: Henriques
Company Name: Banco Credibom, SA.
Country: Portugal
Contact:

Macro with Substitution Variables

Post by smhenriques »

Hi.

I have a problem with a macro, substituting the fields with the variables content.
It detects and substitutes all the iSeries menus and screens fields, except on the last one (which is a window). I know it detects the window, because the <enter> key is "pressed", but the fields remain blanks (var34 and var35).

The macro:
<?xml version="1.0" encoding="UTF-8" ?>
<macro>
<detectonce>
<id row="3" col="2">Previous sign-on . . . . . . . . . . . . . :</id>
<key>Enter</key>
</detectonce>
<detect>
<id row="1" col="16"> Display Program Messages</id>
<key>Enter</key>
</detect>
<detectonce>
<id row="1" col="25">Display Messages</id>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="33">IBM i Main Menu</id>
<input row="20" col="7">wpl</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="70">MINITSC</id>
<input row="19" col="13">5</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="73">MVND001</id>
<input row="19" col="13">1</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="121">PVND101.D00</id>
<key>F2</key>
</detectonce>
<detectonce>
<id row="1" col="121">PVND101.D01</id>
<input row="4" col="10">[VNDNOME]</input>
<input row="5" col="33">[VNDNFC]</input>
<input row="5" col="71">[VNDFJUR]</input>
<input row="7" col="17">[VNDINTER]</input>
<input row="8" col="99">[VNDDCOM]</input>
<input row="9" col="121">[VNDDCON]</input>
<input row="10" col="10">[VNDMAIL]</input>
<input row="10" col="111">[VNDIDSFOR]</input>
<input row="19" col="10">[VNDMORA]</input>
<input row="19" col="99">[VNDLOCA]</input>
<input row="20" col="25">[VNDNUMRUA]</input>
<input row="20" col="71">[VNDCPOS]</input>
<input row="21" col="23">[VNDCONT]</input>
<input row="21" col="71">[VNDTEL]</input>
<input row="21" col="95">[VNDTM]</input>
<input row="21" col="117">[VNDFAX]</input>
<input row="22" col="9">[VNDCARG]</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="121">PVND110.D01</id>
<input row="6" col="38">[VNDTBEM]</input>
<input row="7" col="16">[VNDMARC]</input>
<input row="7" col="64">[VNDOPRO]</input>
<input row="8" col="17">[VNDFNEG]</input>
<input row="8" col="102">[VNDCEST]</input>
<input row="9" col="18">[VNDEXPO]</input>
<input row="9" col="57">[VNDCLOC]</input>
<input row="9" col="102">[VNDVEXP]</input>
<input row="15" col="23">[VNDNIBF]</input>
<input row="16" col="23">[VNDNIBR]</input>
<input row="17" col="23">[VNDNIBC]</input>
<input row="19" col="29">[VNDUVAL]</input>
<input row="19" col="81">[VNDVCRB]</input>
<input row="20" col="15">[VNDVNV]</input>
<input row="21" col="15">[VNDVSN]</input>
<input row="22" col="15">[VNDVUS]</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="90">PVND110.P01</id>
<input row="5" col="27">[PARECER1]</input>
<input row="6" col="27">[PARECER2]</input>
<key>Enter</key>
</detectonce>
<detect>
<id row="1" col="121">PVND101.D00</id>
<key>F12</key>
</detect>
<detect>
<id row="1" col="73">MVND001</id>
<key>F12</key>
</detect>
<detect>
<id row="1" col="70">MINITSC</id>
<key>F12</key>
</detect>
<detect>
<id row="1" col="33">IBM i Main Menu</id>
<input row="20" col="7">90</input>
<key>Enter</key>
</detect>
<detect>
<id row="1" col="37">Sistema . . . . :</id>
<close/>
</detect>
</macro>

Here is the url I'm using:
https://myiSeries/auth/genie?macro=crea ... e35=Linha2

Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests