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     [CLOSED] How can justify data to TOP_LEFT ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How can justify data to TOP_LEFT ?
 Login/Join
 
Platinum Member
posted
Is there option that I can set data justify = TOP-LEFT?

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


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Gold member
posted Hide Post
As far as I know, it's not possible.


WebFOCUS App Studio 8103
Windows7
All outputs
 
Posts: 58 | Location: London, UK | Registered: May 09, 2011Report This Post
Expert
posted Hide Post
I don't understand the question so I cannot give you a firm answer. What do you mean by "data"? What do you mean by "TOP"?


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
Expert
posted Hide Post
-SET &ECHO = ALL ;
TABLE FILE IBISAMP/CAR
BY COUNTRY BY CAR SUM SALES DCOST
ON TABLE HOLD AS MYTAB FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=DCOST,CLASS=c1 , $
END
-RUN 
-HTMLFORM BEGIN
<HTML>
<head>
<style>
.c1 {vertical-align:top; text-align:left;font-family:ARIAL; font-size:9pt; font-variant:small-caps; color:#000000;
 border-top: 1.00pt SOLID #C0C0C0; border-bottom: NONE; border-right: NONE; border-left: NONE; }
</style>
</head>
<body>
!IBI.FIL.MYTAB;
</body>
</HTML>
-HTMLFORM END




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Voila.


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
Platinum Member
posted Hide Post
Thanks susannah. But I don't have any issue with HTML output. HTML output still keeps TOP-LEFT align even I don't use style sheet but Excel output is changed to BOTTOM-LEFT align somehow. I can't find the way to fix this in WebFocus.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Expert
posted Hide Post
We all wish you had mentioned "Excel" in your first post. Please post an example fex that illustrates the problem you're having.


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
Platinum Member
posted Hide Post
My bad, this is my example code:
 
TABLE FILE SQLOUT
PRINT
 ACTION
 INCIDENT
 WORKERTYPEDESC
BY DIVISIONNAME 
BY ID
BY DESCRIPTION
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=REPORT,
     COLUMN=N3,
     WRAP=4.000000,
$
ENDSTYLE
END 


The output I got in Excel like:
  
DIVISIONNAME  ID  DESCRIPTION  ACTION  INCIDENT   WORKERTYPEDESC
                  AAAAAAAAAAA     
AAAA          1   AAAAAAAAAAA  BBBB    CCCC       DDDDDD


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Silver Member
posted Hide Post
It appears that the first record displayed contains blank DIVISIONNAME and ID values.


8009
Windows, HTML, AHTML, Excel
In FOCUS since 1983
 
Posts: 41 | Location: Charlotte, NC | Registered: January 06, 2012Report This Post
Expert
posted Hide Post
Here is one method to have data in Excel vertically aligned to the top of the cell. it uses the HTMLFORMTYPE=XLS setting along with some CSS.

Unfortunately, though it does indeed vertically align the text to the top of the cell, there are other issues I haven't overcome, e.g. borders on the cells outside the report do not display.

I've commented the lines of code that don't seem to make any difference. Perhaps someone else can add to this.

SET PAGE=NOLEAD
-RUN

TABLE FILE CAR
SUM
 SALES
 DEALER_COST
 RETAIL_COST
BY COUNTRY 
BY CAR
BY WARRANTY

ON TABLE SET HTMLCSS ON

ON TABLE HOLD AS REP001 FORMAT HTMTABLE

ON TABLE SET STYLE *
     INCLUDE = endeflt,
$

TYPE=REPORT,
    BORDER=0.1,
	BORDER-COLOR=RGB(208 215 229),
$

TYPE=REPORT,
	COLUMN=N3,
	WRAP=1.000000,
$

TYPE=DATA, 
	CLASS=vertical-top, 
$

ENDSTYLE
END 
-RUN

SET HTMLFORMTYPE=XLS
-RUN

-HTMLFORM BEGIN
<style>

.vertical-top {
    vertical-align: top;
    border-style: 5px solid red;
}

/*
body {
    background-color: transparent;
}

td {
    border-style: 5px solid green;
}
*/

</style>

<body>
!IBI.FIL.REP001;
</body>
-HTMLFORM 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
Platinum Member
posted Hide Post
Thanks Francis. It is worth to try.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Gold member
posted Hide Post
Hi Francis,

I can use your solution for the similar problem I have. However I have a multiple sheet excel compound report. How do I use HTMLFORTYPE and achieve that?

Thanks for any help


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Master
posted Hide Post
Actually, I have an open NFR to provide this and it has been sent to programming. I have asked that JUSTIFY have 2 components, horizontal and vertical separated by a "-". The horizontal would have the existing options of LEFT, CENTER and RIGHT. The vertical component would have TOP, CENTER and BOTTOM. So JUSTIFY would could be LEFT-TOP or CENTER-CENTER, etc.

The supplied solution uses a simple style sheet, I normally do this with a macro enabled template.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Guru
posted Hide Post
Hello Francis and Susannah,
I enjoy reading both your posts and I'm looking to find a way to justify DATA on the SORT FIELD (eg; COUNTRY) vertical center in HTML. Since ENGLAND appears for first 3 rows in this example, my client wants to see it as one cell centered/middle. I"m not sure how we can merge the row and justify at the same time.

Please let me know.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report 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     [CLOSED] How can justify data to TOP_LEFT ?

Copyright © 1996-2020 Information Builders