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.
I am writing a new program that can deliver a variety of different report types (detailed, summarised, etc), which are controlled by a drop down box 'Report Type' on the users data selection screen.
The program gathers data in the same way for each report, using the various data selections options available to the user. A common hold file is created by this process and then the different Excel reports are created, depending on the users Report Type choice.
Instead of the user having to run one report, then change the report type, run a 2nd report, change the report type and run a 3rd report etc, they would prefer for all the reports to be created from one launch.
I have run a quick test myself and it seems to me that once one Excel file has been created that nothing further down the program appears to happen (eg other Excel reports).
I have also tried calling different procedures to run the different reports, but again only the first Excel report appears.
So is it possible to do what I am trying to achieve? Ideally I don't want to repeat the process of gathering the data for the common hold file. I only want to do this once, and then for 3 or 4 Excel reports to appear,
Many thanks
MarkThis message has been edited. Last edited by: Kerry,
WebFocus 765. iSeries v5r4
Posts: 175 | Location: England | Registered: April 11, 2006
You can only have a single output type delivered back to the browser in a request, unless you're creating a compound document. So what you've seen is that you cannot create multiple Excel reports in a single query. Once the browser is returned an answer set from the first query, it doesn't continue to wait for anything further.
As mentioned, you can create multiple worksheets within a SINGLE excel report using the compound layout (document composer, whatever it's called now) tools. You could also try Excel Pivot tables, Active HTML, or Flex technologies which allow further manipulation and outputs of the data without having to re-run the queries. (Active technologies and Flex are additional cost items.)
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I am not sure where I would find the Document Composer? It is not listed as a ‘Create With’ type when I create a new document; therefore I assume we do not have this feature.
As I can only produce one Excel file, is it possible to have reports on one sheet, separated by a few lines? I am certain this can't be done, but I might as well ask!
I have been using WebFocus for quite a few years now and this is the first time a requirement like this has popped up, so sorry if these sound like very beginner questions!
WebFocus 765. iSeries v5r4
Posts: 175 | Location: England | Registered: April 11, 2006
But it works for more than PDF output - which is probably why it's been renamed.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
We have architected our WebFocus environment so that we can do this all the time without having to do compound reports. In very basic terms, we have established a virtual directory on our WebFocus server. When we run our focexec, the program invokes a common routine which dynamically builds a unique file name and url link (all using dialog manager variables). The code then copies the output files to this directory with the unique name and then presents a single report to the customer which displays the hyperlinks to these files. It works great and allows us a tremendous amount flexibility as we aren't really restricted to the types and quantity of output files that we provide the customers. If you would like me to post an example, let me know and I will go into a little bit more detail.
That isn't really multiple Excel reports in a single file, but it sure is a creative way around the problem! The basic methodology you employ (saving the files off to a staging area) can solve other issues as well (such as FTP and/or email capability without having to use ReportCaster).
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007