Focal Point
Framesets

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

April 27, 2004, 06:12 PM
<eck>
Framesets
Trying to use a FRAMESET. The FRAMESET resides in a FOCEXE that is called from a launch page. First frame is header with pertinent information.

Second frame is FOCEXE where data can be added/updated.

The header is htm format, no problem.
Issue: The second frame with the called FOCEXE displays the FOCUS INCLUDE statements, but the HTML tags (textboxes, radio buttons...) display properly.

So, what's up with using framesets?

Any direction or input would be greatly appreciated.

Thank you,


eck
April 28, 2004, 01:30 PM
<Pietro De Santis>
The contents of frames within a frameset must be HTML files, FOCEXEC's are not valid contents.

What I think you need to do is create a dummy html file with a body onload tag that runs your WebFOCUS FOCEXEC, something like this:

<body onLoad="location='cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=FEXNAME';">

April 28, 2004, 02:34 PM
<eck>
Thanks for the response, but my dummy html is not locating the FEX. Here is the dummy code




TESTING

<script>






I have tried different variations of the FEX ratfrmts, but the browser is telling me:

The page cannot be found

Any direction or input would be greatly appreciated.

In advance many thanks,

eck

This message has been edited. Last edited by: <Mabel>,
April 29, 2004, 12:25 PM
Roland
Why using this dummy page. You can make the URL be the source of your frame:

frameset
frame src='cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=app/ratfrmts.fex'
...
/frameset

If the result of ratfrmts.fex is a valid HTML page, this page will be shown in the frame.
This works great in some of our applications.
April 29, 2004, 03:05 PM
<eck>
Thanks for the input Roland, but the result I am looking for is to run the fex inside the frame, ...unless there is another way to run an fex inside a frame... I am open.

The first frame is a html header. The second frame is an fex that has to run inside the frame.

I have attached the code for the page with the frameset that calls the header html(ok) and the dummy html(not ok). I am trying to get the dummy to run and display the 'app/ratfrmts.fex' in the second frame.
NEW PAGE 1




New Page 1

<script>
function fill()
{
alert("???");
}


frameborder="0" onLoad="fill();">
scrolling="auto"
frameborder="0">




Here is the dummy page (testpage.htm) calling the
ratfrmts.fex




TEST PAGE

<script>






No success on calling the dummy:
The page cannot be found

Both NEW PAGE 1 and dummy are html forms.

Once again, any direction or input is greatly appreciated.

Many, many thanks in advance,


eck

This message has been edited. Last edited by: <Mabel>,
April 29, 2004, 03:38 PM
<Pietro De Santis>
Try this:




...

The CGI call is coded slightly differently than the way you had. Also, this is only going to work if the URL in the browser is a server based URL, not a file based one. By this I mean it should look like


http://server/apps/demo/launch.html
and not


c:\ibi\apps\demo\launch.html

This message has been edited. Last edited by: <Mabel>,
April 30, 2004, 12:00 AM
susannah
eck, i think its the word '.fex' in your call.
I launch fexes from framesets (selfserv, not mre)all the time;
here's an example of my code (my fex is named invrep10)
[frame name="main"
src="http://grwf01/cgi-bin/ibi_cgi/webapi.
dll?IBIF_ex=invrep10&COMPANY=MYCOMP&UNITS=ON&
DOLLARS=ON&ONHAND=ON&ATSH=ON&ATSL=ON" target="_self"
scrolling="auto" border="0"
style="border-left-width: 1; border-right-width: 1; border-top: 1px ridge #DCE3EE; border-bottom-width: 1">
[/frameset>

This message has been edited. Last edited by: <Mabel>,
April 30, 2004, 04:15 PM
<WFUser>
The syntax of using app/name.fex is used by Managed Reporting (MRE). If that is the case, your URL is missing several important paramters. You need to specify the domain location (IBIMR_domain), folder (IBIMR_folder), the action to call MRE (IBIMR_action), where the report is located (IBIMR_sub_action), and the fexname in MRE (IBIMR_fex)