Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HELP!! get report on iframe

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HELP!! get report on iframe
 Login/Join
 
Platinum Member
posted
Hi
, I have a mainpage.fex, that has two iframes, one dropdown and value change should run the report with car file.
one iframe has the dropdown and the other is empty.
I am not able to figure out to bring the result set into the empty frame2 in the below code.

----------------------------------------------------------------------

The following is the code in Mainpage.Fex

-------------------------------------------------------------------------



TABLE FILE CAR
SUM
COMPUTE OPT1/A200 = '<option value="' | COUNTRY | '">' | COUNTRY | '</option>';
BY COUNTRY NOPRINT
ON TABLE SAVE AS S001
END
-RUN

-HTMLFORM BEGIN

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<META id=RLT_STANDARDS_MODE_META content=IE=9 http-equiv=X-UA-Compatible>
<META name=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META name=Generation content="Created in release 8005, Generation 3">
<SCRIPT type=text/javascript>
</SCRIPT>

<!-- The following code is to detect Ipad and Iphone and see if you can set screen size here -->
<script type="text/javascript">
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    var viewportmeta = document.querySelector('meta[name="viewport"]');
    if (viewportmeta) {
        viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
        document.body.addEventListener('gesturestart', function () {
            viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
        }, false);
    }
}
</script>

<script type="text/javascript">
function selectCountry()
{
for (var i = 0; i < document.forms[0].COUNTRY.length; i++)
  {
  if (document.forms[0].COUNTRY[i].value == '!IBI.AMP.COUNTRY;')
    {
     document.forms[0].COUNTRY.selectedIndex = i;
     break;
    }
  }

}
</script>

<style type="text/css">

div {
    width: 260px;
	height: 44px;
    overflow: hidden;
    border: none;
    padding: 20px 20px 10px 10px;
    -webkit-appearance: none;
 position:absolute;

}
select {
    width: 300px;
    border: 0px;
	height: 44px;
    font: normal 14px/16px "HelveticaNeueLTCom45Light" , Georgia,serif;

    float: none;
    background-color: #9a8b7d;

    -webkit-appearance: none;
}


</style>
</HEAD>
<BODY onload="selectCountry();">

<form action="/ibi_apps/WFServlet" method="get">

<input type="hidden" name="IBIF_ex"  value="manual_run1.fex"  sourcetype="typeFex" targettype="iframe" targetname="frame2"  >

<div>
<select name="COUNTRY" id ="drop1" onchange="document.forms[0].submit();">
  !IBI.FIL.S001;
</select>
</div>
 <iframe  id = "frame1" name = "frame1" style="Z-INDEX: 2;  WIDTH: 350px; HEIGHT: 900px; TOP: 0px; LEFT: 0px;  ">
 </iframe>
<iframe   id = "frame2" name = "frame2" style="Z-INDEX: 3; WIDTH: 750px; HEIGHT: 900px; TOP: 0px; LEFT: 350px ;   ">
</iframe>



</form>



</BODY>


</HTML>

 -HTMLFORM END





----------------------------------------------------------------------

The following is the code in manual_run1.fex.
-------------------------------------------------------------------------



-SET &ECHO='ALL';

SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
-RUN

-DEFAULT &COUNTRY = 'ENGLAND';

-*-- Prepare report

TABLE FILE CAR
SUM
SALES
BY COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
ON TABLE SET PAGE NOLEAD
ON TABLE HOLD AS R001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<html>
!IBI.FIL.R001;
</html>
-HTMLFORM END


This message has been edited. Last edited by: <Kathryn Henning>,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
<form action="/ibi_apps/WFServlet" method="get" target="frame2">

I don't know what the targettype and targetname attributes are, but an old-fashioned form target will work.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HELP!! get report on iframe

Copyright © 1996-2020 Information Builders