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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain and iframe
 Login/Join
 
Virtuoso
posted
Hi all,
I finally have a question for you wizards out there.
On a maintain form I have an iframe called PDFrame, which I would like to dynamicly populate with the result of a table request, triggered by a click on a button. This result is a pdf document.
I have been able to create a very simple htm page with a button that I can click to populate the iframe, and that works fine. But I seem to be unable to transport this technique into my maintain.
The htm-form used to test this is:
<html>
<head>
<script id=Onbtn_Show_Click language=JavaScript>
<!--
function Onbtn_Show_Click() {
document.getElementById("PDFrame").src="/ibi_apps/WFServlet?IBIF_ex=show_802&IBIAPP_app=myapp&ITEM=1";
}
// -->
</script>
</head>
<body>
<input class="button" id=btn_Show type=button name=btn_Show value="Show"
 style="position:absolute;top:80;left:50;width:96;height:24;visibility:visible; "
 onclick="Onbtn_Show_Click();">

<iframe id=PDFrame name=PDFrame
 style="position:absolute;top:122;left:12;width:750;height:408;visibility:visible; "
 tabindex=-1 scrolling=auto src="" srcURL="" frameBorder="no">
</iframe>
</body>
</html>
And this works fine.

In my maintain I have specified in a case that is linked to the Show button:
winform set StartScreen.PDFrame.source to "/ibi_apps/WFServlet?IBIF_ex=show_802&IBIAPP_app=myapp&ITEM=1"
but nothing ever gets displayed in my PDFrame iframe, no matter how often I click the Show button.

What am I doing wrong here?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
GamP

My understanding is that the URL for a frame cannot be dynamic, i.e you are unable to use a WINFORM SET after the form has been displayed.

However, the method I use is js, almost exactly as you have done, to achieve the same result.

The difference is that the 'show' button returns to the maintain, populates a hidden field with the url,that is then picked up in the js. The function 'Onbtn_Show_Click()' is called from a document.onload. First time in the url is blank, so nothing happen. Click show button, hidden field populated with url by maintain, page returns, document.onload calls function which picks up url, and frame populates.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
Alan,
Thanks, this works like a charm, and exactly meets my requirements.
I knew I could depend on this forum to come up with a workable answer.
Very valuable!


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders