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.
TABLE FILE CAR
PRINT COUNTRY AND CAR AND MODEL
BY COUNTRY
ON COUNTRY SUBHEAD
"Country: <COUNTRY"
WHEN COUNTRY NE 'JAPAN'
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOPAGE
END
You should get a SUBHEAD for each COUNTRY except for JAPAN.
TABLE FILE CAR PRINT COUNTRY AND CAR AND MODEL BY COUNTRY ON COUNTRY SUBHEAD "Country: WHEN COUNTRY NE 'JAPAN' ON TABLE SET HTMLCSS ON ON TABLE SET PAGE NOPAGE END
That works in the CAR file. Itried and see it. It does not work in my file. I'll try pasting my code in again...
[TABLE FILE HOLDDETAIL SUM HOLDDETAIL.HOLDDETA.TTLAMT/P20.2CB AS 'Ttl' BY LOWEST CUSTGRP3SORT NOPRINT BY LOWEST CUSTGRP3 NOPRINT BY LOWEST CUSTGRP2SORT NOPRINT BY LOWEST CUSTGRP2 NOPRINT BY LOWEST CUSTGRP1SORT NOPRINT BY LOWEST CUSTGRP1 NOPRINT BY LOWEST SORTNBR NOPRINT AS 'Sort' BY LOWEST DETAIL_GRPNM AS ' ' ACROSS LOWEST FY AS ' ' ACROSS LOWEST RPTBANBR AS 'Cost Centers'
ON CUSTGRP3 SUBTOTAL AS '*' WHEN NOT CUSTGRP3 IN ('Other Stats'); ON CUSTGRP3 SUBFOOT " " ON CUSTGRP2 SUBHEAD "
I am note sure what code tags are...I can not get my actual code posted, perhaps if someone tells me how I will post it. I though it was simple as putting '[' and ']' around the code.
one last try...wish they had a preview on this forum!
[TABLE FILE HOLDDETAIL SUM HOLDDETAIL.HOLDDETA.TTLAMT/P20.2CB AS 'Ttl' BY LOWEST CUSTGRP3SORT NOPRINT BY LOWEST CUSTGRP3 NOPRINT BY LOWEST CUSTGRP2SORT NOPRINT BY LOWEST CUSTGRP2 NOPRINT BY LOWEST CUSTGRP1SORT NOPRINT BY LOWEST CUSTGRP1 NOPRINT BY LOWEST SORTNBR NOPRINT AS 'Sort' BY LOWEST DETAIL_GRPNM AS ' ' ACROSS LOWEST FY AS ' ' ACROSS LOWEST RPTBANBR AS 'Cost Centers'
ON CUSTGRP3 SUBTOTAL AS '*' WHEN NOT CUSTGRP3 IN ('Other Stats'); ON CUSTGRP3 SUBFOOT " " ON CUSTGRP2 SUBHEAD "
You will get the tags for code by clicking on the right-most button in the reply post. It is easy to find as it is the only one in red. Post your code with it and then we can try and help.
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
Robert: If you look at the little icon bar above where you enter your message you'll see a button at the extreme right.
Click that and you will see the code tags. Just insert your code between those two tags. (You don't have to use the button - you can just type the respective tags at the top and bottom of your code).
TABLE FILE HOLDDETAIL
SUM
TTLAMT/P20.2CB AS 'Ttl'
BY LOWEST CUSTGRP3SORT NOPRINT
BY LOWEST CUSTGRP3 NOPRINT
BY LOWEST CUSTGRP2SORT NOPRINT
BY LOWEST CUSTGRP2 NOPRINT
BY LOWEST CUSTGRP1SORT NOPRINT
BY LOWEST CUSTGRP1 NOPRINT
BY LOWEST SORTNBR NOPRINT AS 'Sort'
BY LOWEST DETAIL_GRPNM AS ' '
ACROSS LOWEST FY AS ' '
ACROSS LOWEST RPTBANBR AS 'Cost Centers'
ON CUSTGRP3 SUBTOTAL AS '*'
WHEN NOT HOLDDETAIL.HOLDDETA.CUSTGRP3 IN ('Other Stats');
ON CUSTGRP3 SUBFOOT
" "
ON CUSTGRP2 SUBHEAD
"<CUSTGRP2 " WHEN CUSTGRP2 NE 'Addendum'
ON CUSTGRP2 SUBTOTAL AS ''
WHEN NOT CUSTGRP2 IN ('wRVUs', 'Units','Salaries','Charges','Panel Size','Other Stats','Addendum','FTEs');
.
.
.
All Subtotal supression works fine. Subhead...not so good....does not supress on: 'Addendum'
-* File Robert2.fex
TABLE FILE CAR
SUM SALES
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY BODYTYPE
ACROSS SEATS
ON COUNTRY SUBTOTAL AS '*'
WHEN NOT COUNTRY IN ('FRANCE')
ON COUNTRY SUBFOOT
" "
ON CAR SUBHEAD
"<CAR "
WHEN CAR NE 'JAGUAR'
ON CAR SUBTOTAL
WHEN NOT CAR IN ('JAGUAR', 'MASERATI')
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=ENDEFLT, $
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
If I may suggest, try some good old fashioned salami debugging: cut out all the superfluous, see that you get what you want and then add slice by slice...
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
I think that was it...the WHEN on its own line...but I dicovered the solution thru another means that made no sense to me...so thanks for the post!
I whittled my code down to this:
TABLE FILE HOLDDETAIL
BY HOLDDETAIL.HOLDDETA.CUSTGRP2
ON HOLDDETAIL.HOLDDETA.CUSTGRP2 SUBHEAD
"<CUSTGRP2" WHEN CUSTGRP2 NE 'Addendum';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END
It was still acting up. So changed the report type to HTML. It worked. I then changed it back to Excel...to my surprise..it worked. It appears the GUI somehow dropped the WHEN to its own line. At least I understand it now..I was thinking it was some sort of bug.