Focal Point
html with fex to html with fex...

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

December 03, 2007, 02:21 PM
<Shane>
html with fex to html with fex...
I was wondering if this was possible with WebFOCUS...

I have an html page with a fex imbedded in an iframe. I have an icon above the iframe that I'd like the user to be able to click on and have a new window open up with a new html page (and form) and a new iframe that will display another fex within. I was wondering how I go about passing parameters from the first icon link into the 2nd html page and have those parameters limit the results in my 2nd report.

Is this possible?

Shane
December 03, 2007, 03:02 PM
Fernando
Shane,

The problem here is a html page calling another html. HTML can not process parameters, so your second html page has no way of passing parmeters to the fex in the iframe.

You can do of the following:

1) Have you html page call a fex directly in a new window.
2) Have you html page call a jsp or asp which would then pass the parameters to the fex in the iframe.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
December 03, 2007, 05:41 PM
<Shane>
All:

We were able to get this accomplished in a round-about way. We had the image on the first page be a hyperlink to a fex that generates the desired report and then at the bottom, has the following code:
  
-IF &RECORDS EQ 0 THEN NORECS ELSE RECS;
-NORECS
-HTMLFORM PLTMGT_H_003
-GOTO THEEND;
-RUN
-RECS
-HTMLFORM PLTMGT_H_002
-THEEND


Shane
December 03, 2007, 06:46 PM
Darin Lee
Good one Shane. We use a similar technique. It looks like a duck and acts like a duck.
Don't forget there are a lot of things that you can do in a fex besides create a report--


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
December 04, 2007, 05:38 AM
GamP
The solution found is probably hte best way to do this.
But I still think I have to comment on Fernando's contribution.
It is possible to create a link to an html page that contains parameters, and it is also possible in the called html page to obtain these parameters.
The way to pass the parameter is to have the url expanded with a string like:
'?PAR1=value1&PAR2=value2' and so on.
In the second html page you can utilize javascript to obtain the value of the parameters and store them in html-variables on the page and/or form.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988