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     Create new reports based on previous adhoc selection

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Create new reports based on previous adhoc selection
 Login/Join
 
Platinum Member
posted
I've created an adhoc report that allows users to select from 5 different parameters displayed as list boxes (HTML Layout Painter). The output is in Excel format. The users are now requesting that new reports be created from their previous report based on the selected values for one of the parameters. For instance, the header of the first report shows the following:

Selected Parameters:
Business Unit:GRPBMG
Ilec Ixc:IXC
Business Line:'DATA_IP'
Product Group:'FRAME' OR 'ATM' OR 'IQ' OR 'ETC'
Product Tier:'ALL'

The subsequent reports (tabs on the same workbook) would have Product Group EQ Frame (2nd report), Product Group EQ ATM (3rd report), Product Group EQ IQ (4th report), and so on. All other selections would stay the same.

The number of tabs on the final report will vary based on the user's number of values selected from the Product Group list.

Appreciate any suggestions you guys might have.
Thank very much!
Luiz
 
Posts: 117 | Location: Denver | Registered: July 27, 2005Report This Post
Expert
posted Hide Post
You would simply create a COMPOUND EXL2K report. OPEN the COMPOUND report with the summary report and then, using the Dialogue Manager REPEAT command, loop through the Product Group filter values and run a report for each. On the last one in the loop you would CLOSE the COMPOUND report.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Francis,
So, you're saying that it doesn't matter how many values the user picks for the summary report, right? I have used compound reports before, but not with the REPEAT command. Do you happen to have any examples of it? Thanks for the quick reply!
Luiz
 
Posts: 117 | Location: Denver | Registered: July 27, 2005Report This Post
Expert
posted Hide Post
Generally, when you call WebFOCUS with a form object that has more than one value selected, the number of selected values gets passed. E.g. If you select four countries in a COUNTRY drop-down box, the four countries get passed along with the number of countries selected - &COUNTRY1, &COUNTRY2, &COUNTRY3, &COUNTRY4 and &COUNTRY0 with a value of 4.

Taking this to the next step, you could have something like this:

-SET &ECHO=ALL;

-? &

-DEFAULT &Country0 = 1;
-DEFAULT &Country1 = '&Country.EVAL';

-*-- Print main report ---
SET COMPOUND=OPEN
-RUN

-BYPASS_COMP1

TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ACROSS MODEL
WHERE COUNTRY EQ '&Country1'

-REPEAT REP1_END FOR &COUNTER FROM 2 TO &Country0;
OR '&Country.&COUNTER'
-REP1_END

ON TABLE SET STYLE *
TITLETEXT=All Selected, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
-RUN

-*-- Print individual reports ---

-REPEAT REP2_END FOR &COUNTER FROM 1 TO &Country0;

-IF &COUNTER NE &Country0 GOTO BYPASS_COMP2;

SET COMPOUND = CLOSE
-RUN

-BYPASS_COMP2

TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY MODEL
WHERE COUNTRY EQ '&Country.&COUNTER'

ON TABLE SET STYLE *
TITLETEXT=&Country.&COUNTER, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
-RUN
-REP2_END

The two DEFAULT statements at the top of the code are in case only one Country is selected.

Oh no! I've written your program for you! Let me know if you have questions...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
You sure did! Smiler

Thank you so much, and have a great day!
Luiz
 
Posts: 117 | Location: Denver | Registered: July 27, 2005Report 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     Create new reports based on previous adhoc selection

Copyright © 1996-2020 Information Builders