Genie xml macro

Use this board to ask questions or have discussions with other Genie users.
Post Reply
susana.henriques
New User
Posts: 3
Joined: Mon Aug 28, 2017 6:20 am
First Name: Susana
Last Name: Henriques
Company Name: Banco Credibom
Contact:

Genie xml macro

Post by susana.henriques »

Hello.

I've been using xml macros for a while, but I'm having a problem with this one. Is there any limitation on the size/length of the link?
Thank you

Error:
Unmatched variable "VNDCSUP". The error occurred at line 39, column 27.

Macro (IFS) lines :
<?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="5" col="10">[VNDNOME]</input>
<input row="6" col="33">[VNDNFC]</input>
<input row="6" col="71">[VNDFJUR]</input>
<input row="6" col="128">[VNDCSUP]</input>
<input row="8" col="17">[VNDCODNAT]</input>
<input row="9" col="17">[VNDINTER]</input>
<input row="8" col="53">[VNDGEN]</input>
<input row="10" col="61">[VNDREGI]</input>
<input row="10" col="99">[VNDDCOM]</input>
<input row="11" col="61">[VNDCNL]</input>
<input row="11" col="121">[VNDDCON]</input>
<input row="12" col="10">[VNDMAIL]</input>
<input row="12" col="113">[VNDIDSFOR]</input>
<input row="17" col="10">[VNDMORA]</input>
<input row="17" col="99">[VNDLOCA]</input>
<input row="18" col="25">[VNDNUMRUA]</input>
<input row="18" col="71">[VNDCPOS]</input>
<input row="19" col="23">[VNDCONT]</input>
<input row="19" col="71">[VNDTEL]</input>
<input row="19" col="95">[VNDTM]</input>
<input row="19" col="117">[VNDFAX]</input>
<input row="20" col="11">[VNDCARG]</input>
<input row="20" col="99">[VNDNASC]</input>
<input row="20" col="120">[VNDCGEN]</input>
<input row="21" col="22">[VNDEMAIL]</input>
<key>Enter</key>
</detectonce>
<detectonce>
<id row="1" col="121">PVND110.D01</id>
<input row="6" col="24">[VNDTNEG]</input>
<input row="6" col="38">[VNDTBEM]</input>
<input row="7" col="16">[VNDMARC]</input>
<input row="7" col="64">[VNDOPRO]</input>
<input row="7" col="93">[VNDONEG]</input>
<input row="7" col="114">[VNDPNEG]</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="10" col="18">[VNDVIP]</input>
<input row="10" col="38">[VNDRATS]</input>
<input row="10" col="57">[VNDCAUC]</input>
<input row="13" col="23">[VNDPIRS]</input>
<input row="13" col="54">[VNDRFIS]</input>
<input row="13" col="89">[VNDCIRS]</input>
<input row="13" col="113">[VNDTREC]</input>
<input row="13" col="127">[VNDPIVA]</input>
<input row="14" col="56">[VNDPEXT]</input>
<input row="14" col="89">[VNDTCMB]</input>
<input row="14" col="127">[VNDPCOM]</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="27">[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>F12</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>

Macro link:
https://xxxxxxxx.mydomain.xxx/profoundu ... value55=PT
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Genie xml macro

Post by Scott Klement »

The only limit I'm aware of is the max values that will fit in 32 bit integer (which is around 4 billion.)

Can you tell us what problem you're having, exactly? The more information you can provide, the more likely it is that we'll be able to help.
susana.henriques
New User
Posts: 3
Joined: Mon Aug 28, 2017 6:20 am
First Name: Susana
Last Name: Henriques
Company Name: Banco Credibom
Contact:

Re: Genie xml macro

Post by susana.henriques »

When the macro is "opened" on the browser, it says that the variable "VNDCSUP" doesn't exist, but it's defined on the xml file.
I've done more testing and figured it out, one of the variables contains a cardinal (#) and for some reason, it causes the error.

Thanks anyway.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Genie xml macro

Post by Scott Klement »

The # character has a special meaning in a URL, so must be escaped as %23
susana.henriques
New User
Posts: 3
Joined: Mon Aug 28, 2017 6:20 am
First Name: Susana
Last Name: Henriques
Company Name: Banco Credibom
Contact:

Re: Genie xml macro

Post by susana.henriques »

Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest