IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    IFrame contents
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I have 4 iframes in one web page. And I am pulling some reports from webfocus into iframe. How can I get the contents of the report to get adjusted with the size of the iframe. Thanks


viji
 
Posts: 3 | Registered: August 20, 2008Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Make the frame bigger or the font on the report smaller.


Ginny
---------------------------------
Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
 
Posts: 1551 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
The IFrames have to be aligned in a way that 2 iframes must be in one row. so i cannot change the size of the iframe as it pushes the other iframe to different row.
Is there a property in IFrame that would squeeze the contents so that it would fit the IFrame??


viji
 
Posts: 3 | Registered: August 20, 2008Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
SS, is it width or height you're worried about?
Is the user adjusting the iframe?
or is the iframe a fixed size and then what's happening to the report? do you have scrollbars on in your iframes?
You know there's an alternative to using iframes...
let your fex launch into a separate frame:
Say your fex makes 4 outputs..
call them MYTAB1, MYTAB2, MYTAB3, MYTAB4
eg:
TABLE FILE ..
...
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
END
...repeat 3 times;
-RUN
-HTMLFORM BEGIN
<TABLE>
<TR>
<TD>
!IBI.FIL.MYTAB1;
</TD><TD>
!IBI.FIL.MYTAB2;
</TD></TR>
<TR><TD>
!IBI.FIL.MYTAB3;
</TD>
<TD>
!IBI.FIL.MYTAB4;
</TD></TR></TABLE>
-HTMLFORM END

adjust as needed, and you get all 4 bits on one page. There are alot of different configurations you can use, depending on what you need.
..




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2634 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
The users don't like the scrollbars. They want to see the full contents of the iframe without scrolling. so that means i need to resize the contents and adjust according to the iframe size. And i cannot resize the iframe bigger as i need 4 iframes in one webpage(2 in one row).


viji
 
Posts: 3 | Registered: August 20, 2008Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
then do it exactly the way i showed you, and you'll avoid iframes, avoid scrollbars, and see the whole table in each of the 4 cells, every time.

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




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2634 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I wish this would work for expandable reports! I used this code and got an error:
TABLE FILE CAR
PRINT
     SALES
BY COUNTRY
BY MODEL
ON TABLE SET EXPANDABLE ON
ON TABLE NOTOTAL
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
END
-RUN

TABLE FILE CAR
PRINT
     SALES
BY COUNTRY
BY MODEL
ON TABLE SET EXPANDABLE ON
ON TABLE NOTOTAL
ON TABLE HOLD AS MYTAB2 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
END
-RUN

TABLE FILE CAR
PRINT
     SALES
BY COUNTRY
BY MODEL
ON TABLE SET EXPANDABLE ON
ON TABLE NOTOTAL
ON TABLE HOLD AS MYTAB3 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
END
-RUN

TABLE FILE CAR
PRINT
     SALES
BY COUNTRY
BY MODEL
ON TABLE SET EXPANDABLE ON
ON TABLE NOTOTAL
ON TABLE HOLD AS MYTAB4 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
END
-RUN

-HTMLFORM BEGIN
<TABLE>
<TR>
<TD>
!IBI.FIL.MYTAB1;
</TD><TD>
<BR></BR>
!IBI.FIL.MYTAB2;
</TD></TR>
<BR></BR>
<TR><TD>
!IBI.FIL.MYTAB3;
</TD><TD> 
<BR> </BR>
!IBI.FIL.MYTAB4;
</TD></TR>
<BR></BR>
</TABLE>
-HTMLFORM END  


- Using 764 on WinXP (sp2) - IE7.
 
Posts: 24 | Registered: October 09, 2006Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
That is likely to be due to the fact that each expandable report is self contained and includes the JS and everything it requires - so no return visit to the server to get anything else. As a consequence there will be an inclusion of JS the controlling JS file for each output and also the HTML tag names and IDs will be reused for each self contained output. You're going to have conflicts.

Use Iframes to avoid this as each Iframe will have inner HTML and act as a child to the parent HTML page therefore each output will act as intended - self contained.

If you want your output fitting your Iframe size then try and use the "zoom" attribute within the Iframe CSS styling. Not sure if it works with browsers such as Firefox etc. but it does with IE.

<iframe id=ITEM1 src="http://www.google.co.uk" onmouseover=resizectrl("ITEM1"); style="zoom:10%; HEIGHT: 400px; WIDTH: 600px;">
<script>
function resizectrl(ctrl) {
document.form.reset();
el = document.getElementById(ctrl);
el.style.zoom = "100%";
}


T


Old FOCUS coders never die, they just become functionally stable. (Tony A Wink)

Current Client: WebFOCUS 7.6.2 Win XP SP2/IIS 6/Tomcat 5.5 - MRE / BID MS SQL / Oracle - DevStudio 7.6.6 7.1.6
Local: WebFOCUS 7.6.6 7.1.6 on Win XP SP2/Apache/Tomcat 5.5 - Self Service
 
Posts: 2865 | Location: England U.K. (Freelance) | Registered: April 08, 2004Reply With QuoteEdit or Delete MessageReport This Post
Waz
Guru
Posted Hide Post
Tony is absolutely right.

When the expandable report is generated, a label of table1 is applied to the report, in fact all the reports.

I took you example, changed the HTMTABLE to HTML and ran it, had a look at the contents.

Each report has the same label.

If the label of table1 is changed to table2 for the second report, and so on, each report works ok, but looks horrible.

I would assume that IBI will (May, perhaps, possibly, one blue moon) add functionality to change the table1 to table{n}, or let you set it you self.

Til then, you will have to keep each report separate with, as Tony suggests, Iframes.

Or you could try to post process each HTM file to change the table1 to something else.


Waz...
Prod:WebFOCUS 7.1.6Upgrade:WebFOCUS 7.6.6OS:UnixOutputs:PDF, CSV, Excel, TXT, XML, HTML

 
Posts: 390 | Location: Sydney, Australia | Registered: October 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    IFrame contents

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.