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 by case] Right justify column data/title

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED by case] Right justify column data/title
 Login/Join
 
Gold member
posted
I am using the following to right justify the column title and data. It works for numeric columns but not for alphanumeric. Am I missing something?

TYPE=DATA,
COLUMN=N3,
JUSTIFY=RIGHT,
$

TYPE=TITLE,
COLUMN=N3,
JUSTIFY=RIGHT,
$

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


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Virtuoso
posted Hide Post
JUSTIFY=RIGHT works fine.

Are you sure it is COLUMN=N3 the one you need to change the alignment to?

When using N notation for columns, *every* field involved in your request counts, even BY fields and those with NOPRINT.

Just to test, can you try using the P notation instead?

So if it is the 3rd column printed in your report the one you want to change, you could do:

TYPE=DATA, COLUMN=P3, JUSTIFY=RIGHT, $
TYPE=TITLE, COLUMN=P3, JUSTIFY=RIGHT, $



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
The fact that it seems to work for numeric values may be that numbers are by default right-aligned so even if you were trying to style the wrong column you wouldn't notice the effect.

Regards,
Neftali.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
Yes, its the 3rh column. I made sure by also including COLOR=RED and the color of column data changes to red but the text is still left alligned. I also tried doing in GUI and using P3 instead but still didn't work. Also, I have the same problem with all alphanumeric columns in this report and not just the one I indicated.
Not sure what's wrong. I will open a case with tech support. Thanks.

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


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Virtuoso
posted Hide Post
Do you have ACROSS columns and is the output PDF? If so, column justification is problematic. This post concerns a similar situation.

Data alignment in PDF


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
Try TYPE=REPORT instead of TYPE=DATA:

TABLE FILE CAR
PRINT
*
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=8, $
TYPE=REPORT, COLUMN=N2, COLOR=RED, JUSTIFY=RIGHT, $
ENDSTYLE
-*ON TABLE PCHOLD FORMAT EXL2K
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
The output is in AHTML and following is the styling code. Basically its just ignoring all the column justifications I am asking for and just putting them out as default i.e. numbers aligned right and alphanumeric aligned left. Any clues?

ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'Total' 'GLTRANS.GLTRANS.PSLAMO' 'GLTRANS.GLTRANS.PSAMTR'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=DATA,
COLUMN=N15,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N14,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N13,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N12,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N11,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N10,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N9,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N7,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N16,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N8,
JUSTIFY=RIGHT,

$
TYPE=DATA,
COLUMN=N5,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N4,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N3,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N2,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TITLE,
COLUMN=N15,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N14,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N13,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N12,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N11,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N10,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N9,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N7,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N16,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N8,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N5,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N4,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N3,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N2,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N6,
JUSTIFY=RIGHT,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
STYLE=BOLD+UNDERLINE,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
Seems to work for me:

TABLE FILE CENTHR
PRINT *

ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'Total'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=DATA,
COLUMN=N15,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N14,
JUSTIF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UMN=N6,
JUSTIFY=RIGHT,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
STYLE=BOLD+UNDERLINE,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Hmm..interesting. I think its an issue with my version 7.6.10. Below is the response I got from tech support. I tried the code below with HTML output and it works but when I switch to AHTML, it doesn't work. Too bad I need the reports in AHTML format to have sorting, export, and other functions that end users could do.


Tech Support response: "It is a known issue that currently column justification is now working correctly with active report output. I will associate your case with the known issue and you will be contacted with the release number where this issue is fixed."



TABLE FILE car
PRINT *
ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'Total'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=DATA,
COLUMN=N1,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N1,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N2,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N2,
JUSTIFY=RIGHT,
$
TYPE=DATA,
COLUMN=N3,
JUSTIFY=RIGHT,
$
TYPE=TITLE,
COLUMN=N3,
JUSTIFY=RIGHT,
$

ENDSTYLE
END


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
"It is a known issue that currently column justification is now working correctly"

Bad typo!


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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 by case] Right justify column data/title

Copyright © 1996-2020 Information Builders