Focal Point
[SOLVED] Calling Html form from Fex and pass variables

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

April 08, 2010, 12:32 AM
DD
[SOLVED] Calling Html form from Fex and pass variables
Hi,
How to pass P_domain variable to Html form?

Fex_Name: vendor1.fex and the code is:
-SET &p_domain = &IBIMR_domain;
-HTMLFORM genericfx/app/generic_html_form.htm

generic_html_form is linked to generic_fex and has p_domain parameter. The above Fex code is in Vendor domain Fex which share the generic_fex and generic_html_form. So this &p_domain value should get passed to generic_html_form which passes it to generic_fex. Depending on the p_domain, the generic_fex gets the Vendor_id and build the where clause.
We are having trouble passing P-domain to
-HTMLFORM formname command.
Any help is greatly appreciated.
Thanks,
Ram.

This message has been edited. Last edited by: Kerry,


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
April 08, 2010, 08:28 AM
GamP
the html form has the parameter p_domain in it. I assume it is in the form of an < input > variable. If so, you can provide the value for this field by specifying value='!IBI.AMP.p_domain;' within the input tag. Note that if you call the html form without this variable being set, it will not produce an error but rather just show the page but without a value for the p_domain veriable.
Example of this:
<input type=hidden name=p_domain value='!IBI.AMP.p_domain;'>
Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
April 08, 2010, 09:25 AM
LDW
Hi DD,

We have had success using the same solution GamP is suggesting. We do it through the HTML Composer.

Open your HTML page in the HTML Composer, click on the icon called "Hidden". In the properties window to the right , name the input field and give it a unique identifier. We set our position as Left=-10000px, Right=-10000px, Tab Index=-1. Lastly set the 'Value' to
!IBI.AMP.p_domain;

You may have to relink your fex file in the HTML page for this to take effect, but this should pass the parameter from a fex, through the HTML reference page, to the final fex.

Good luck!

Lee


7.6.8
Windows xp
html
April 08, 2010, 10:04 AM
DD
Thanks Alot GamP and Lee. I will try it today.


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
April 09, 2010, 12:41 AM
DD
It worked great..I really appreciate your time and help.

Once again Thank You Somuch and have a great weekend.


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF