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     [SOLVED] HTML launch page, running a csv output and pdf output at the same time

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HTML launch page, running a csv output and pdf output at the same time
 Login/Join
 
Guru
posted
I'm not sure this is possible but I hope someone out there has done it before and can help me out. I have a fex that runs address labels to a csv output and another fex that does the same thing but to pdf output. I currently have two launch pages, one for each fex. I want to have one launch page that will run the csv and then the pdf. Oh and in between there is an html form that displays a message that the csv file has been created. If I run the csv and then the form displays with the csv message, how do I get it to then clear the report and display the pdf output. This needs to be done with one submit button click. Thanks for any help.

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


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
<JG>
posted
quote:
Oh and in between there is an html form that displays a message that the csv file has been created.


option 1. Add a button to the form that runs the PDF, not one click as it requires a user to click it.
option 2. Add an onOpen function to automatically submits the PDF request.
Use javascript to keep the CSV created message on the calling page.
 
Report This Post
Guru
posted Hide Post
JG
I thought about adding a button, but really wanted it to just "magically" happen. I'm not sure how to do the onOpen function. Is this an ibirls function? Or something I would code? If so, is there a way to delay the running of the PDF fex so the csv message can be read then continue on to display the pdf?


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
<JG>
posted
Sorry I meant onLoad.

Here is an example. it waits 5 seconds then runs the report

 
TABLE FILE CAR
SUM DCOST
BY COUNTRY
ON TABLE HOLD AS CSVFILE FORMAT COM
END
-RUN
-HTMLFORM BEGIN
<html>
  <head> 
  </head>  <body onload="window.setTimeout('document.form1.submit()',5000);">
  <FORM  NAME=form1 ACTION="/ibi_apps/WFServlet" METHOD="POST",target="_blank"  >
  <INPUT TYPE="hidden" NAME="IBIF_ex" VALUE="CARINST">
CSV Created
</FORM>
</body>
</html>
-HTMLFORM END 
 
Report This Post
Guru
posted Hide Post
JG, I couldn't get this to work. Every time I added the onload in the body, my page was stuck in the "loading pleas wait" splash. But I figured out a work around where it runs the csv report, I just display an alert msg(instead of html form csv msg) then it runs/displays the PDF report. Works. Thanks for the help.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report 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     [SOLVED] HTML launch page, running a csv output and pdf output at the same time

Copyright © 1996-2020 Information Builders