Focal Point
[CLOSED] ACROSSVALUE

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

June 01, 2011, 08:49 AM
philippe@Nantes
[CLOSED] ACROSSVALUE
Hello everybody,
I've a fex using ACROSS verb.
The acrossvalues are too large for a sexy appearance said the end-user.
So is there any method to change dynamically the values printed without changing them in the file ( like the AS phrase for title's column).

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


WebFocus thru Dev Studio version 7.6.11
Dev Studio on Windows Xp, Webfocus Client on UNIX basing on TOMCAT and DB2,
Reporting Server on MVS , USS and on UNIX
June 01, 2011, 09:07 AM
<FreSte>
There is a thread on this one (posted by j.gross) , see here
June 01, 2011, 09:31 AM
philippe@Nantes
Thank's FreSte
I've looked for the thread but it's not the same subject.
My fex looks like this :
DEFINE FILE CAR
TITRE/A50=DECODE COUNTRY ('ENGLAND' 'ANGLE,TERRE' 'FRANCE' 'FRANCE' 'ITALY' 'Rép., ITALIENNE' 'JAPAN' 'Empire du, Soleil, Levant' ELSE 'N.A');
END
TABLE FILE CAR
SUM
DEALER_COST
BY CAR
ACROSS TITRE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
I hope the result will be for the acrossvalues
ANGLE FRANCE Rép. Empire du
TERRE Italienne Soleil
Levant
But it is
ANGLE, TERRE FRANCE Rép, ITALIENNE Empire du,Soleil, Levant

Is it possible ?


WebFocus thru Dev Studio version 7.6.11
Dev Studio on Windows Xp, Webfocus Client on UNIX basing on TOMCAT and DB2,
Reporting Server on MVS , USS and on UNIX
June 01, 2011, 09:39 AM
Francis Mariani
Philippe, SQUEEZE might work for you (remove the commas from the TITRE values):

DEFINE FILE CAR
TITRE/A50=DECODE COUNTRY ('ENGLAND' 'ANGLE TERRE' 'FRANCE' 'FRANCE' 'ITALY' 'RÉP. ITALIENNE' 'JAPAN' 'EMPIRE DU SOLEIL LEVANT' ELSE 'N.A');
END
TABLE FILE CAR
SUM
DEALER_COST
BY CAR
ACROSS TITRE AS ''
ON TABLE NOTOTAL
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8,
$

TYPE=ACROSSVALUE, COLOR=GREEN, WRAP=0.5, JUSTIFY=RIGHT, $
ENDSTYLE
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
June 01, 2011, 10:15 AM
philippe@Nantes
Francis I'm trying WRAP option but it's not work cause I've not this option on my WF version - WF 7.6.11.


WebFocus thru Dev Studio version 7.6.11
Dev Studio on Windows Xp, Webfocus Client on UNIX basing on TOMCAT and DB2,
Reporting Server on MVS , USS and on UNIX
June 01, 2011, 10:22 AM
Francis Mariani
Try SQUEEZE, not WRAP. They both are definitely available in 7.6.11, but they behave differently depending on the output = PDF, EXL2K, HTML...


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
June 01, 2011, 10:24 AM
philippe@Nantes
Francis, I was wrong, I have the option of course it was a coding mistake.
But even I code WRAP=0.25 there is no change to my report.


WebFocus thru Dev Studio version 7.6.11
Dev Studio on Windows Xp, Webfocus Client on UNIX basing on TOMCAT and DB2,
Reporting Server on MVS , USS and on UNIX
June 01, 2011, 01:04 PM
Francis Mariani
quote:
TYPE=ACROSSVALUE, COLOR=GREEN, WRAP=0.5, JUSTIFY=RIGHT, $

seems to work in my example. There may be something else that's disabling it.

For instance, this doesn't work - if I remove AS '' from TITRE, it works. So adding a border can affect the result, AS '' can affect the result...

DEFINE FILE CAR
TITRE/A50=DECODE COUNTRY ('ENGLAND' 'ANGLE TERRE' 'FRANCE' 'FRANCE' 'ITALY' 'RÉP. ITALIENNE' 'JAPAN' 'EMPIRE DU SOLEIL LEVANT' ELSE 'N.A');
END
TABLE FILE CAR
SUM
DEALER_COST
BY CAR
ACROSS TITRE AS ''
ON TABLE NOTOTAL
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, $
TYPE=REPORT, BORDER=1, BORDER-COLOR=SILVER, $
TYPE=ACROSSVALUE, COLOR=GREEN, WRAP=0.5, JUSTIFY=RIGHT, $
ENDSTYLE
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