Focal Point
[SOLVED] passing parameters to HTML Layout Painter v7.1.3

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

March 20, 2007, 10:26 AM
STEPH
[SOLVED] passing parameters to HTML Layout Painter v7.1.3
I have a 5 reports embedded in a resource layout file (.htm) and 3 graphs (.fex) linked to the same .htm file. All reports will receive the same amper variable. I am attempting to pass the amper variable through the URL by appending it on the end of the URL. So far this has not worked.


I've tried the usual method: URL + ?variable name= value

Does anyone have any other suggestions?

Let me know if you need anymore information.

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


Steph
March 20, 2007, 10:46 AM
Lusheng
How about to assign the parameters to the controls (such as textbox), and your focexec within html can get the values from the controls. You can hide the control if you don't want users to see.
March 20, 2007, 11:08 AM
STEPH
I was able to set up a hidden parameter in the layout painter. I set it to a sample value and it worked.

How do I set up the URL to pass the parameter to this hidden field? Do I have to set up the hidden field differently?

when I use this value
input name="PE" value="!IBI.AMP.PE;"

and the url
http://server/approot/folder/file_name.htm?PE=00000711

the result is:
0 NUMBER OF RECORDS IN GRAPH= 0 PLOT POINTS= 0
NO DATA TO GRAPH


because the value of the field is :="!IBI.AMP.PE;

I've also tried:
input name="PE" value="&PE"

In my reports the amper variable is &PE

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


Steph
March 20, 2007, 11:23 AM
Francis Mariani
quote:
http://server/approot/folder/file_name.htm?PE=00000711

You cannot pass parameters to an HTML page in this manner.

!IBI.AMP.ampname; is WebFOCUS language.

The only way I know to pass variables to an HTML page is to use cookies and/or JavaScript.

You can pass parameters to a WebFOCUS program that contains HTML. The URL would look like this:

http://server-name/ibi_apps/WFServlet?IBIF_ex=pgmname&PARM1=XXYYZZ&PARM2=112233



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 20, 2007, 12:08 PM
STEPH
Thanks a lot. I didn't have to use javascript. I kept the hidden field and used your suggestion for the URL.

works great!


Steph
December 30, 2008, 11:12 AM
vaayu
Hi,
I have a very similar situation and have tried to include html by saying -HTMLFORM in a fex and SET &MYVAR to something and it didnt work. I also have MYVAR as a hidden input in the html.

Please help..

Thanks in advance


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
December 30, 2008, 12:28 PM
Darin Lee
That's not much to go on. Could you create a new posting and explain your problem and attempted solution(s) a little more?


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat