Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] CENTER-RIGHT Alignment

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] CENTER-RIGHT Alignment
 Login/Join
 
Silver Member
posted
Hi Freind,

I want to center - right align my decimal data but i can't please help me.
my code is like the following:

  
DEFINE FILE CAR
WHEELBASE/D20.2 = IF WHEELBASE EQ 105 OR 85 THEN (-1) * WHEELBASE ELSE WHEELBASE;
WHEELBASE1/A25=  TRIM('B', FTOA(WHEELBASE, '(D20.2)', 'A25'), 25, ' ', 25, 'A25') ;
END
 
TABLE FILE CAR
PRINT CAR  WHEELBASE1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
 TYPE=REPORT, COLUMN=WHEELBASE1, JUSTIFY=CENTER,  SQUEEZE=ON, $
 TYPE= DATA,    COLUMN=WHEELBASE1, JUSTIFY=CENTER, $
ENDSTYLE
END


Now the WHEELBASE1 column data is not aligning in right position in center as the following:

CAR               WHEELBASE1
------         ---------------
JAGUAR              -105.00
JAGUAR              112.80
JENSEN              -105.00

Expected:

CAR               WHEELBASE1
------         ---------------
JAGUAR             -105.00
JAGUAR              112.80
JENSEN             -105.00

Thanks A lot

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.67 & WebFOCUS 80 windows
 
Posts: 45 | Location: Kabul, Afghanistan | Registered: August 07, 2011Report This Post
Master
posted Hide Post
Check below code. There are always better way of doing in WebFOCUS. This might give some idea.
DEFINE FILE CAR
WHEELBASE_D/D20.2 = IF WHEELBASE EQ 105 OR 85 THEN (-1) * WHEELBASE ELSE WHEELBASE;
WHEELBASE_A/A30V = FTOA(WHEELBASE_D, '(D20.2)', 'A25V');
WHEELBASE_T/A30V = TRIMV('B', WHEELBASE_A, 39, ' ', 1, WHEELBASE_T);
LENWHEELBASE/I11=LENV(WHEELBASE_T,'I11');
WHEELBASE_N/A37V=IF LENWHEELBASE EQ 7 THEN WHEELBASE_T 
ELSE IF LENWHEELBASE EQ 6 THEN ' ' | WHEELBASE_T 
ELSE IF LENWHEELBASE EQ 5 THEN '  ' | WHEELBASE_T 
ELSE IF LENWHEELBASE EQ 4 THEN '   ' | WHEELBASE_T 
ELSE '';
END

TABLE FILE CAR
PRINT 
CAR 
WHEELBASE_D AS 'Existing Output'
WHEELBASE_N AS 'Expected Output'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, BORDER=ON, PAGESIZE=LEGAL,$
TYPE=REPORT, COLUMN=WHEELBASE_N, JUSTIFY=CENTER,  SQUEEZE=ON, $
 TYPE= DATA,    COLUMN=WHEELBASE_N, JUSTIFY=CENTER, $
  TYPE= DATA,    COLUMN=WHEELBASE_D, JUSTIFY=CENTER, $
ENDSTYLE
END

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Silver Member
posted Hide Post
Hi Ram,

Thanks a lot from your nice codding that help me a lot.


WebFOCUS 7.67 & WebFOCUS 80 windows
 
Posts: 45 | Location: Kabul, Afghanistan | Registered: August 07, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] CENTER-RIGHT Alignment

Copyright © 1996-2020 Information Builders