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.
There are many ways to do this depending on what you want. If you mean the user is selecting search criteria and then you want two different pdf reports, look up html composer in the documentation. You can execute several reports at the same time in different windows,tabs, etc.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
I am having one html report. In that report print button is there. when user clicks on print button then it should return 4 PDF's but HTML report data wont be distributed to 4 PDF's. 4 PDF's having 4 different queries with different data but for these parameters are same.
So with one request can we call 4 FEX files which will give 4 PDF's?
If so, you should get familiar with the HTML Composer. It will do exactly what you want. Create a form and point the run button to execute the 4 different procedures.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
Something has to fire off four requests, which will be fulfilled by separate agents on the webfocus reporting server, and targeted to different areas of a single page rendered in the browser. Right?
Have the fex called by JSP return an html page (that you created in dev studio), with four target regions (e.g., tabs), and have the page issue (without user action) the four fex calls, targeted to the four respective portions of the page.
That's the big picture. There are lots of details to attend to -- what event triggers the four requests, how to include parameters passed by JSP (if applicable) in those 4 calls, yada yada.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
If you are going j.gross's route, the easiest thing to do for the html page created in dev studio is to have four ibi javascript execute calls to the different procedures.
In the documentation the syntax is:
IbComposer_execute('reportID', ['outputTarget']);
The code goes in the OnInitialUpdate function.
OR do what I said initially and have a button pointing to the four reports and opening them in different tabs. In the OnInitialUpdate function just click that button so that it is automatically pressed on load.
Both solutions are easy and through the GUI except for OnInitialUpdate. If you don't want the html page to appear, have one of the reports point to _self while the others point to _blankThis message has been edited. Last edited by: J,
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
It's quite likely that I misunderstand the issue, but what is so difficult about doing it as a single compound report? That would allow the parameters to be reused throughout and produce 4 outputs ...
I tried with below as J mentioned. IbComposer_execute('reportID', ['outputTarget']);
I tried to give the report name as a first argument for IbComposer_execute but it didn't worked for me. I know reportID means not report name. but i need to open 4 FEX Files as outputs. So these FEX files dont have any report ID right?
I tried with OnInitialUpdate function by writing below lines inside.
Santu, the ibcomposer function expects the id of a frame that the reports are in,, you could create 4 frames pointing to the reports and hide them.
I wasn't talking about doing window.open. If you point the html composer button to the for reports and by creating a hyperlink through the gui it will execute those reports. Just click in oninitial update.
George's suggestion is probably best unless you absolutely have to have separate documents. In document composer compound report, you could have a table of contents and the user could click on the section they wish.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
-* File a_test1.fex
-SET &&CTRY=&COUNTRY;
-RUN
TABLE FILE CAR
PRINT DEALER_COST
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ '&&CTRY'
ON TABLE SAVE AS 'C:\TEMP\DEALER.PDF' FORMAT PDF
END
-RUN
EX a_test2.fex
-RUN
The last line of the first report calls the second report. Now make the second report
-* File a_test2.fex
TABLE FILE CAR
PRINT RETAIL_COST
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ '&&CTRY'
ON TABLE SAVE AS 'C:\TEMP\RETAIL.PDF' FORMAT PDF
END
-RUN
-SET &&CTRY='';
! C:\TEMP\DEALER.PDF
-RUN
! C:\TEMP\RETAIL.PDF
-DONE
This should work for as many reports as you want and they will get displayed in sequence at the end of processing. The display phase could be in a separate FEX of course.
If you save as HTML the reports display as side-by-side tabs in the browser, which is kind of neat.This message has been edited. Last edited by: George Patton,