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] how to share hold file on doc composer or html composer

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] how to share hold file on doc composer or html composer
 Login/Join
 
Platinum Member
posted
we created a graph and a grid report on the composer. Data for these graph and report comes from the same hold file which takes a long process to assemble. Rather than each graph and report goes through the same process to create this hold file, is there a way to create this hold file in the composer so that both can use? I am not looking for a pre-executed report caster job to create this file in advance on a regular basis.

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


wf 7.6.11
unix aix
active reports, HTML, Excel, Text and PDF formats
 
Posts: 102 | Registered: April 20, 2004Report This Post
Platinum Member
posted Hide Post
Not sure if this works but how about trying an embedded procedure option.


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

 
Posts: 104 | Location: Indianapolis | Registered: November 08, 2007Report This Post
Platinum Member
posted Hide Post
I am not sure I understand. The graph and the report are each an imbedded proc. I don't think we know which one proc is going to be executed first. So, if I have the graph to include the creation of the hold file, the report might be the one to run first and would not have the hold file yet. And vice versa.


wf 7.6.11
unix aix
active reports, HTML, Excel, Text and PDF formats
 
Posts: 102 | Registered: April 20, 2004Report This Post
Gold member
posted Hide Post
How about making the file up to the hold file as an include file and then include it in the compound layout doc composer?
Make your graph and the report with the hold file name as separate fexes and include them as the report components in the compound layout. I think that would work.


7.7.01,windows2008 R2
 
Posts: 65 | Registered: July 28, 2011Report This Post
Platinum Member
posted Hide Post
what do you mean by "include the include file in the compound layout doc composer"? please explain.


wf 7.6.11
unix aix
active reports, HTML, Excel, Text and PDF formats
 
Posts: 102 | Registered: April 20, 2004Report This Post
Virtuoso
posted Hide Post
I think what you want is to hold it locally (APP HOLD ...) under a specific name (ON TABLE HOLD AS ...)?

For example:
APP HOLD ibiwork

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS CARCNTRY FORMAT FOCUS INDEX COUNTRY
END
-RUN

TABLE FILE CARCNTRY
PRINT *
END

GRAPH FILE CARCNTRY
SUM CNT.CAR
BY COUNTRY
END


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
mike, while going through the development of your report/graphs in Composer, you can first pre-generate the HOLD file and keep it in an app folder so you have easy access to it. Borrowing from Wep5622's post:

APP HOLD ibiwork

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS HDATA
END
-RUN



You can now use HTML composer and all internal tools to "paint" your reports, graphs and the like out of that HOLD which is always there. This will save you some good chunk of development and debugging time.

Now, when you're ready to deploy, you can create a wrap procedure where you will create a similar HOLD file in EDATEMP (to allow for session concurrency) loading the HTML page right after.

-* Wrap procedure to create HOLD data and load HTML page
TABLE FILE CAR
SUM
DEALER_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HDATA
END
-RUN

-HTMLFORM my_report_and_graph.htm



You can then deploy that .fex to your users instead of providing them with direct access to the HTML page.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
1. I am not sure I understand the reason for a second table file in the wrap proc
2. but, as I indicated in the beginning that I don't want to use the approach to pre-create a hold file separately way ahead of time (pre-deployment). I want that file created during the request because data can change. If I create the hold way way ahead of time, the data will be different.

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


wf 7.6.11
unix aix
active reports, HTML, Excel, Text and PDF formats
 
Posts: 102 | Registered: April 20, 2004Report This Post
Virtuoso
posted Hide Post
That's why I split my advise in 2 stages.

For DEVELOPMENT only, you'll create your HOLD file ahead of time and save it somewhere where you (developer) can always see it. You don't have to refresh it everyday or ever for that matter. All you need is a data source + mastefile that can be used in your report/graph development within HTMl composer.

Now, for PRODUCTION, you say that you don't want to generate the file ahead of time (via Report Caster or otherwise) but the HOLD file still has to be refreshed *before* your report and graph get displayed everyday, hasn't it?

That's what the wrep .fex procedure does. It will guarantee that the HOLD file is generated everytime the report/graph request runs. You cannot use the old HOLD file created above because that was just to be used for development -- no data refresh on that one.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Just to add on this, the wrap procedure will indeed to what you want which is:

quote:
I don't want to use the approach to pre-create a hold file separately way ahead of time (pre-deployment)


And you won't have to. The HOLD file I advised to create first will only exist in your Development environment, not in Prod. For prod, you want a fresh HOLD file everytime.

Since you don't want to create it ahead of time (I don't see why that would be a problem but it's your requirement anyway) you have to link its creation/refresh process to the report execution itself. That's why a wrap is needed. It's the only way to serialize the processing so the HOLD file gets there first, and then the report and graph can run in parallel as they do when embedded in HTML created with composer.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
now I see. I think that might work. Thanks!


wf 7.6.11
unix aix
active reports, HTML, Excel, Text and PDF formats
 
Posts: 102 | Registered: April 20, 2004Report 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] how to share hold file on doc composer or html composer

Copyright © 1996-2020 Information Builders