Focal Point
Pass variable through WF screens

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1621019331

November 04, 2005, 01:31 PM
isjhb
Pass variable through WF screens
I am working on an app where I interact with a Mainframe program which in turn calls my WF reports. The mainframe program passes me a connection id which allows me to link back to that screen. My problem is once the program has linked to one of my reports I am unable to pass the connection id along to the next report and so on. I have exceded my 80 byte limit on my link with the other information I am passing. I was thinking there was a way to keep the value hidden in my HTML screens but that doesn't appear to be work. If anyone has any ideas it would be appreciated. Smiler
November 04, 2005, 01:51 PM
Francis Mariani
I think if you set the form action to POST instead of GET, the URL length limit does not get applied. Then you can set your connection ID as a form object.
November 04, 2005, 01:56 PM
isjhb
This is the code I have in my form tag in my HTML document:
name="WFForm" method="POST" action="/cgi-bin/ibi_cgi/ibiweb.exe"
<input type="hidden" name="connectionid" value="!IBI.AMP.CONN;">

Any idea how I use it in my next report. This is what I need to be able to populate in the next WF report I call. I have tried to do a -SET in my .fex but it doesn't appear to be working.

-SET &POL_LINK1 = '/cgi-bin/interact.pl?';
-SET &POL_LINK2 = 'transaction=tran0004' | '&' |'connectionid=&CONN.EVAL';
-SET &POL_LINK3 = '&' | 'formid=view' | '&' | 'app_tran=BIM' | '&' | 'app_func=P';
-SET &POL_LINK4 = '&' | 'sub=&SBY.EVAL' | '&' | 'pol=&POL.EVAL' | '&' | 'div=&DIV.EVAL';
November 04, 2005, 04:01 PM
Francis Mariani
In your next report, the variable is called &connectionid and not &CONN.

To see what is passed from the form to the fex, put this at the top of your fex:

-? &
-EXIT
November 04, 2005, 06:26 PM
isjhb
It doesn't appear that it is getting passed at all. It isn't in my list of &variables. Could I get codes samples that should go both in my first html/fex as well as my second html/fex. I must be missing something.