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
FernandoShane,
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
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 LeeGood 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--
December 04, 2007, 05:38 AM
GamPThe 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.