GenIDtag(xml string)
Xml String = Encoded XML string (32.000A)


Return type:
Unique ID code

Description:
For security reasons links etc. are encoded as a unique ID number. This way you can use any protected information (e.g. social security number etc.) in your links on the browser.

Normally you would set a link with query information displayable on the link:

http://www.xxxxx.com/somepage.asp?name=”Albertha”+secretinfo=”reveal”

You see this on top of your screen or in the hyperlink inside the HTML source

With iSeries2web the function GenIDtag all this is encoded and therefore not displayable in the browser.

The information you want to embed into the code is written in normal XML functions and then set into the GenIDtag function.


/free
Putxmlrdc(list_of_links:
+XmlA('link':GenidTag(

+Xmla('name':'Albertha')
+Xmla('secretinfo’:’revael’)
)
)
/end-free

This way the 2 inner xmlA functions sends the encoded xml-string into the GenIDtag function, which created the code and sends this to the outer xmlA (the link)

When the user clicks on the link the values just encoded can be retrieved by normal RtvVar functions

All kinds of functions are allowed as the xml-string


Notes and Restrictions:
Only one ID code is allowed pr. Link.