Focal Point
Passing Parameters from one HTML Page to another HTML

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

July 03, 2007, 10:43 AM
Prasanna
Passing Parameters from one HTML Page to another HTML
Hi,

I'm using Web focus Developer Studio version 7.1 .I need to pass a parameter(user entered value in the text box) from one HTML file(HTML FILE 1) to another HTML file(HTML FILE 2 ,containing multiple fex files ).I am able to pass the parameter from a text box to a single fex file using Hyperlink Property of HTML Layout painter(by linking to that External Procedure).But when i try to link (HTML FILE 2) and pass the parameter value from the text box of HTML File 1,its throwing an error FOC295(A value missing for that parameter value).

When i have gone through the discussion forums,I am able to see that the parameter passing b/w HTML Pages is acheivable using Hidden variable.Can anyone please let me know how i can create this Hidden variable and pass it from one HTML page to another.Any help in this regard is highly appreciable.


Thanks

Prasanna
July 04, 2007, 05:22 AM
kummy
prasanna,

you can use the following method to pass the variable between html's

< INPUT TYPE="HIDDEN" NAME="VARIABLENAME" VALUE="PLACE YOU VALUE HERE" >

for example

< INPUT TYPE="HIDDEN" NAME="VAR_sample" VALUE="100" >

where VAR_sample is the variable name and 100 is the value assigned to it
July 05, 2007, 03:15 AM
Prasanna
Thanks Kummy.But my actual requirement is to get the value which is entered in the text box of HTML File1 and pass the same to the HTML File2 having multiple fex files. The captured value is then passed as a parameter to the WHERE condition of the FEX files in HTML File2.

Using query string and javascript, i could able to pass the value from one HTML to the second HTML. But couldnt pass this as a parameter to the FEX file.

Is there any other way to implement this using webfocus functionality? Any suggestion or help will be highly appreciated.


Thanks
Prasanna
July 05, 2007, 02:34 PM
GCohen
I may not understand what you need exactly, but WebFOCUS has two types of parameters. The first are parameters that only apply to the FEX that is called. These are &value parameters.
The second type of parameters persist from one drill-down report to another in a chain of drill-downs. These are &&value parameters. So, in the first HTML page you pick up some value as an &&value. Then in all subsequent drill-down FEX's you can use &&value.


Release 7.6.9
Windows
HTML
July 05, 2007, 03:06 PM
Jud
I think i know what you mean.
Any variable that you pass to go to another page is stored as an amper variable in webfocus.
so to access the variable just give it the name of your text field as &textfieldname

so for
input type="text" name="MYVAR" />

your webfocus variable would be
&MYVAR