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 have developed a report that has a drilldown for daughter records. When the basic inventory component has had additional components purchased to enhance it as in adding a snow plaw blade to a front end loader then are inventory has daughter records most do not and I would like to suppress the drilldown except for only those that have daughter records. Sort of like the MULTILINES feature in BY statements. Hope this is clear, I have attached the drillldown.
fex
TABLE FILE EQMAST
PRINT EQPT_ID_304 EQPT_DSCR_304 AS 'EQPT,DESCRIPTION' EQPT_LST_DEPR_YR_304 AS 'LAST,DEPRECIATION,YEAR' EQPT_USE_LIFE_CNT_304/A4 AS 'USEFUL,LIFE YRS' EQPT_ACQR_YR_304 AS 'YEAR,ACQUIRED' EQPT_STAT_CD_304 AS 'STATUS,CODE' EQPT_CST_AMT_304/P10C AS 'ACQUISITION,COST' COMPUTE CPT_ACQ_CST/P10C = EQPT_CST_AMT_304 * .95; AS 'COMPUTE 95%,ACQUISITION,Cost' EQPT_ACCUM_DEPR_AMT_304/P10C AS 'Total,Depreciation' BY ORG_NM BY EQPT_DECAL_NUM_304 AS 'DECAL,NUMBER' -*BY EQPT_ID_304 HEADING " Inventory with acquisition price 5000 OR more " " Where status code EQ 1 or 4 AND" " Where depreciated amount greater than or equal to 95% of acquisition amount " " From Metadata EQMAST view" "WHERE ( EQPT_STAT_CD_304 EQ '4' OR '1' ); WHERE ( EQPT_CST_AMT_304 GE 5000 ); WHERE TOTAL( EQPT_ACCUM_DEPR_AMT_304 GE CPT_ACQ_CST ); ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL -*ON TABLE PCHOLD FORMAT EXL2K ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET COMPOUND 'BYTOC 1'
Write a TABLE request before the stylized one where you count the number of daughter records by key and put the info in a SAVE file. Then in your stylesheet section, do a -REPEAT loop where you only generate the drilldown for a row if the daughter counter is greater than zero.
You could also just use a computed field that counts the number of child records. Then you could create a condition WHEN COUNTER GT 0 and add the drilldown based on this condtition. I'm unable to tell from your code how you determine whether or not a child record exists. If you need to join to another file, make sure you use the SET ALL=PASS or you would erroneously eliminate any records that do not have children.
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
Darren and Ginny: Sorry that it has taken this long to get back re: this post. The field containing the daughter records is not picked up in the parent report I could add it as a NOPRINT in order to CNT.SUM. if this is what you are suggesting? would I need to order the cnt before the drilldown?
That's correct. Do the join to the child record and then count the occurrences of that child field (either with CNT. prefix or define a counter field to count non-missing values) and you can NOPRINT. Then you can create your condition on that count and base a drill down on that condition.
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