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     multiple different results in the same report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
multiple different results in the same report
 Login/Join
 
Gold member
posted
Hi,

I want to generate a report with the first page showing all the parameters passed by the user and the subsequent pages showing the data fetched using these parameters.Moreover the first page is verticle i.e i'll display the selection parameters using OVER command.I am using 2 database stored procs for this.

1] EX FETCH_PARAM()
2] EX FETCH_DATA()

how do i develop such a report where two stored proc's needs to be executed (results fetched by these two stored proc's are different)and the data merged into the same file.


I am palnning to do something like the following.But it is not working -
-INCLUDE DB2_CONNECT

EX FETCH_PARAM(1111);

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS TEMP1 FORMAT ALPHA
END

-INCLUDE DB2_CONNECT

EX FETCH_DATA(1111);

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS TEMP2 FORMAT ALPHA
END

-HTMLFORM BEGIN
<html>
<body>
<br>
<div align="center">
  !IBI.FIL.TEMP1;
 </div>
  <div align="center">
  !IBI.FIL.TEMP2;
  </div>
</body>
</HTML>
-HTMLFORM END


Regards,
Aditya
 
Posts: 84 | Registered: June 05, 2006Report This Post
Virtuoso
posted Hide Post
Aditya,

Instead of FORMAT ALPHA use FORMAT HTMTABLE.
It should do the trick.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
<JJI>
posted
Danny,

Isn't there a -RUN needed after the EX FETCH_PARAM and FETCH_DATA? This way you are sure the proc has been executed before you do the TABLE FILE SQLOUT.

Just a thought.
 
Report This Post
Virtuoso
posted Hide Post
JJI,
No, there shouldn't be a -RUN after the EX FETCH_PARAM because the TABLE FILE SQLOUT is part of the retrieving of the answer set.
However there probably should be a -RUN before the -HTMLFORM BEGIN


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Gold member
posted Hide Post
Hi Danny,

I tried giving FORMAT HTMTABLE.But only the first proc's o/p is shown i.e TEMP1.

Regards,
Aditya
 
Posts: 84 | Registered: June 05, 2006Report This Post
Virtuoso
posted Hide Post
Aditya,
I suppose that in your -INCLUDE DB2_CONNECT you have an SQL DB2 statement.
Did you see if your FETCH_DATA sp retrieved records?

I ran this without any problem:
TABLE FILE CAR
SUM SALES BY COUNTRY
ON TABLE HOLD AS TEMP1 FORMAT HTMTABLE
END
-RUN

TABLE FILE CAR
SUM SALES BY BODYTYPE
ON TABLE HOLD AS TEMP2 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<body>
<br>
<div align="center">
  !IBI.FIL.TEMP1;
 </div>
  <div align="center">
  !IBI.FIL.TEMP2;
  </div>
</body>
</HTML>
-HTMLFORM END




Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     multiple different results in the same report

Copyright © 1996-2020 Information Builders