Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] need to right justify alpha field in across report
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] need to right justify alpha field in across report
 Login/Join
 
Member
posted
I have a report in webfocus 8.105. I have 2 numerical fields that need to be shown as 2-2 meaning I must use the edit function to alpha, concatenate the dash in between. the kick is I need to present the field as right justified in a across report. I've tried /R and the RJUST function, no luck. any suggestions?

COMPUTE AMIN_SHIFTS/A4 = EDIT(MIN.GCRS_CAPACITY_CONVERSION_REPORT.GCRS_CAPACITY_CONVERSION_REPORT.SHIFTS); NOPRINT
COMPUTE RZ_MIN_SHIFTS/A4 = TRIM('L', AMIN_SHIFTS, 4, '0', 1, RZ_MIN_SHIFTS); NOPRINT
COMPUTE AMAX_SHIFTS/A4 = EDIT(MAX.GCRS_CAPACITY_CONVERSION_REPORT.GCRS_CAPACITY_CONVERSION_REPORT.SHIFTS); NOPRINT COMPUTE RZ_MAX_SHIFTS/A4 = TRIM('L', AMAX_SHIFTS, 4, '0', 1, RZ_MAX_SHIFTS); NOPRINT
COMPUTE NUSHIFTS/A10 = IF RZ_MIN_SHIFTS EQ '0' THEN '0-' | RZ_MAX_SHIFTS ELSE RZ_MIN_SHIFTS | '-' | RZ_MAX_SHIFTS;
RJSHIFTS/A10=RJUST(10,NUSHIFT,RJSHIFT);

THEN

PRINT RJSHIFTS...

BUT FIELD IS NOT RIGHT JUSTIFIED... Frowner

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 15 | Registered: October 17, 2012Reply With QuoteReport This Post
Master
posted Hide Post
use a WebFOCUS Style Sheet and JUSTIFY-RIGHT.




Scott

 
Posts: 865 | Registered: May 24, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
...
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=AMIN_SHIFTS, JUSTIFY=RIGHT, $
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2341 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Member
posted Hide Post
thank you both. User error on my part, thanks for the text clip, it showed me my acrosscolumn number was off! Wink
 
Posts: 15 | Registered: October 17, 2012Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] need to right justify alpha field in across report

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.