Focal Point
EXL2K and WRAP and Row Height

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9841050722

May 08, 2007, 12:43 PM
Francis Mariani
EXL2K and WRAP and Row Height
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
May 08, 2007, 05:37 PM
susannah
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 string

This message has been edited. Last edited by: susannah,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
May 09, 2007, 02:19 PM
Francis Mariani
Susannah,

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
May 09, 2007, 03:26 PM
susannah
rats




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
May 09, 2007, 03:30 PM
mgrackin
Francis,

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
END

This message has been edited. Last edited by: mgrackin,


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
May 09, 2007, 04:11 PM
Francis Mariani
Mickey,

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
May 09, 2007, 04:22 PM
mgrackin
Francis,

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
May 09, 2007, 04:28 PM
Francis Mariani
Smells like an NFR?


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
May 09, 2007, 09:41 PM
FortuneCookie
I realize you're on 5.3 but it sounds like the EXL2K TEMPLATE option in 7.1 should do the trick as well.

Rather then having WebFOCUS control everything, just send the raw data to Excel and have an Excel Template format it for you.
July 10, 2013, 05:53 AM
Sivakumaran Elangovan
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?


Webfocus 7.6
Excel, HTML, PDF