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.
We have a unique report requirement that I have not been able to solve up to this point. We are doing a report that displays active and issued items. The columns are aptly named: ACTIVE and ISSUED. We would like for the report to display in one column ACTIVE / ISSUED. We have tried many solutions, and none match up to what we need.
The closest we've come to being able to do this is to use PTOA, and concatenate the two fields. When using this technique, we cannot sum the data on the subtotal/grandtotal lines. We can summarize the data in a RECAP field, but that displays on an undesired new line.
Desired Output:
Product Type Active/Issued Production Test1 T1 3/8 200 Test2 T1 4/5 400 Subtotal T1 7/13 600 Test3 T2 2/3 100 Test4 T2 2/2 200 Test5 T2 1/10 300 Subtotal T2 5/15 600 Test6 T3 8/10 900 Subtotal T3 8/10 900 Total 20/38 2100
Any thoughts on the subject would be greatly appreciated.
Product Info: Developer Studio 7.6.5 Microsoft SQL Server 2005 Output Formats: PDF, HTML, ExcelThis message has been edited. Last edited by: Kerry,
We had a couple of issues when using subfoot. First, we can't get all the data to line up properly underneath one column. Second, we can't draw heavy borders around the column in a subfoot.
Well, the easiest method would be to make a decision. If you want to display the numbers as an alpha string with a slash then you lose the ability to subtotal numbers. OR you can display them as numbers in separate columns and get subtotals. I would opt for the latter. There are numerous ways you could display them as separate numeric columns but make them APPEAR as if they are in the same column with an alpha column containing a '/' in between. Problem is you want to display alpha but have numeric subtotals. The ONLY way to do that is with SUBFOOT. Your alignment issues could probalby be resolved using POSITION= and JUSTIFY= in the stylesheet. There shouldn't be any issues with drawing borders - would have to see your code - but there are several ways around that as well.
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 decided to use two numeric columns and sum them, and display the '/' as a column of it's own in between them.
The response we received from IBI support was that Borders cannot be drawn in PDF in SubFoots. It is an enhancement coming in a later release.
I'm very interested...what other options are there for formatting a SubFoot?
Code for the current report is:
TABLE FILE RPTPERSISTENCYREPORTBYIMOADHOC SUM 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED' AS 'Issued' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ACTIVE3MONTH' NOPRINT AS '3Month,Active' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED3MONTH' NOPRINT AS 'Issued' COMPUTE RatioThree/D20.2% = ( ACTIVE3MONTH / ISSUED3MONTH ) * 100; NOPRINT AS 'Persist,Ratio' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ACTIVE6MONTH' AS '6Month,Active' Slash AS '' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED6MONTH' AS 'Issued' COMPUTE RatioSix/D20.2% = ( ACTIVE6MONTH / ISSUED6MONTH ) * 100; AS 'Persist,Ratio' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ACTIVE14MONTH' AS '14Month,Active' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED14MONTH' AS 'Issued' COMPUTE RatioFourteen/D20.2% = ( ACTIVE14MONTH / ISSUED14MONTH ) * 100; AS 'Persist,Ratio' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ACTIVE26MONTH' AS '26Month,Active' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED26MONTH' AS 'Issued' COMPUTE RatioTwentysix/D20.2% = ( ACTIVE26MONTH / ISSUED26MONTH ) * 100; AS 'Persist,Ratio' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ACTIVE38MONTH' AS '38Month,Active' 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.ISSUED38MONTH' AS 'Issued' COMPUTE RatioThirtyeight/D20.2% = ( ACTIVE38MONTH / ISSUED38MONTH ) * 100; AS 'Persist,Ratio' BY 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.IMO' NOPRINT BY 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.MARKET' NOPRINT BY 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.AGENTNAME' AS 'Agent,Name' BY 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.AGENTNUMBER' AS 'Agent,Number' BY 'RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.STATUS' AS 'Stat'
ON RPTPERSISTENCYREPORTBYIMOADHOC.ANSWERSET1.IMO RECOMPUTE AS 'Grand Total'
-* File americo1.fex
TABLE FILE CAR
PRINT RCOST NOPRINT DCOST NOPRINT
COMPUTE RD/A13=FTOA(RCOST, '(D6c)', 'A6') | '/' | LJUST(6, FTOA(DCOST, '(D6c)', 'A6'), 'A6');
BY COUNTRY
ON COUNTRY RECAP
RDT/A13=FTOA(RCOST, '(D6c)', 'A6') | '/' | LJUST(6, FTOA(DCOST, '(D6c)', 'A6'), 'A6');
ON COUNTRY SUBFOOT
"<COUNTRY<RDT"
" <+0 "
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN = BODY,
$
ENDSTYLE
END
A possibility...
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, 2006
That was our last attempt, did not quite meet the needs.
The problem becomes the SUBHEAD/SUBFOOT. We need to be able to style the borders of the subhead and subfoots of this report. Columns 5-6 are a group, the left side of column 5 has a heavy dark border, and the right side of column 6 has a heavy dark border (or any kind of border for that matter).
Darin mentioned there was a way around the borders issue, i would love to see it. The only border I can see that we can draw is around the entire subhead - not individual columns within the subhead.
That is correct. Borders can be drawn around the entire subfoot, but not around specific items within the subfoot. If the subfoot always appears at the same position on the page, you could draw a box around it. Your options would be limited based on your specific requirement. However, since you have decided upon using separate columns, you can format them individually as needed.
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
If there is a border (or grid) problem and so, on the one hand SUBFOOT is not a solution, and on the other hand SUBTOTAL doesn't provide for totalling alph fields, then you have to create your total fields as if they were in the database. Here is one possible solution.
-* File americo2.fex
SET HOLDLIST=PRINTONLY
-* Create the "totals" field
DEFINE FILE CAR
SRT/I1=2;
END
TABLE FILE CAR
SUM RCOST NOPRINT DCOST NOPRINT
COMPUTE RD/A13=FTOA(RCOST, '(D6c)', 'A6') | '/' | LJUST(6, FTOA(DCOST, '(D6c)', 'A6'), 'A6');
BY COUNTRY
BY SRT
ON TABLE HOLD AS TOT FORMAT ALPHA
END
-*
FILEDEF TOT DISK TOT.FTM (APPEND
-*
-* Create the individual fields and merge them into the first HOLD
DEFINE FILE CAR
SRT/I1=1;
END
TABLE FILE CAR
PRINT RCOST NOPRINT DCOST NOPRINT
COMPUTE RD/A13=FTOA(RCOST, '(D6c)', 'A6') | '/' | LJUST(6, FTOA(DCOST, '(D6c)', 'A6'), 'A6');
BY COUNTRY
BY SRT
ON TABLE SAVE AS TOT
END
-*
-* Report from the HOLD file which now contains both individual and totals
DEFINE FILE TOT
XCOUNTRY/A10=IF SRT EQ 1 THEN COUNTRY ELSE 'Total';
END
TABLE FILE TOT
PRINT RD AS 'RCOST/DCOST'
BY COUNTRY NOPRINT
BY SRT NOPRINT
BY XCOUNTRY AS COUNTRY
ON COUNTRY SUBFOOT
" "
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT,
$
ENDSTYLE
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, 2006