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.
Is there any way to alter the row height of the subtotal row in the following EXL2K example?
I have a long description for the Subtotal and I would like to have it wrap to the width of the data in the first column, but I would like to make the row height large enough to fit all the text...
-SET &ECHO=ALL;
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS 'THIS IS A VERY VERY LONG SUBTOTAL DESCRIPTION FOR'
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=COUNTRY, WRAP=1.0, $
END
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
wishful thinking! but there might be, there's a carriage return character that i encounter in some of my text fields, that i have to grab in order to read the text. It might work in reverse... i'm emailing you a file with a record in it that contains 4 carriage returns in the single record.(a memo field from an input from some 'other' app) See if you can BYTVAL it and get a value, then see if you can stuff that value into the middle of your character string to make it wrap. I've seen text in excel cells that does in fact contain a carriage return, a forced wrap. but i can't create one directly in excel, there's gotta be a way... aha.. turns out the BYTVAL for that funny little square box carriage return (retour de chariot) is a 1 so you can create it like this: DEFINE RETOURdeCH/A1 =HEXBYT(1,'A1'); and try stuffing that into the middle of a header stringThis message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I tried your very good suggestion, but, unfortunately it didn't work. I tried the HEXBYT function with several non-printable ASCII characters and no luck - some displayed as a square box, some displayed as blank.
Thanks for the suggestion though.
THIS IS A VERYVERY LONG SUBTOTALDESCRIPTION FOR JAPAN
-SET &ECHO=ALL;
DEFINE FILE CAR
CR/A1 =HEXBYT(1,'A1');
COUNTRY_ST/A60 = 'THIS IS A VERY' | CR | 'VERY LONG SUBTOTAL' | CR | 'DESCRIPTION FOR ' | COUNTRY;
END
TABLE FILE CAR
SUM
SALES
BY COUNTRY_ST NOPRINT
BY COUNTRY
BY CAR
ON COUNTRY_ST SUBTOTAL AS ''
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=COUNTRY, WRAP=1.0, $
END
-RUN
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
If you are willing to use SUBFOOT then try the following:
DEFINE FILE CAR LONGDESC/A100='THIS IS A VERY VERY LONG SUBTOTAL DESCRIPTION FOR: ' | COUNTRY; END TABLE FILE CAR SUM RCOST DCOST SALES BY COUNTRY BY CAR ON COUNTRY SUBFOOT "<LONGDESC<ST.RCOST<ST.DCOST<ST.SALES" " " ON TABLE SET STYLE * TYPE=SUBFOOT, HEADALIGN=BODY,$ TYPE=SUBFOOT, LINE=1, BACKCOLOR=CYAN,$ TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=1, COLSPAN=2,$ TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=2, POSITION=P3, JUSTIFY=RIGHT,$ TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=3, POSITION=P4, JUSTIFY=RIGHT,$ TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=4, POSITION=P5, JUSTIFY=RIGHT,$ ENDSTYLE ON TABLE PCHOLD FORMAT EXL2K ENDThis message has been edited. Last edited by: mgrackin,
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Thank you for the SUBFOOT solution. I usually stay away from using SUBFOOT for SUBTOTALS as you have to do different styling for different output formats.
Cheers.
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
I usually try to stay away from SUBFOOT as a substitute for SUBTOTALs as well due to the extra amount of coding involved. However, I could not find anyway to identify the SUBTOTAL text with a STYLESHEET command. There does not seem to be a way (at least in WF 7.1.3) to say TYPE=SUBTOTAL, COLUMN=TOTALTITLE or the like.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
I have a excel report in which displays rows and subhead when detailed view is selected by the user. But now when user is unchecking the detailed view, I wish to print the column title and subhead alone and the row contents has to be hidden. Is there any way to achieve this thro webfocus query language in dev studio? HIDING ROWS CONTENT AND DISPLAYING ONLY SUBHEAD AND COLUMN TITLE? Any Idea?