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] vertically justifying data
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] vertically justifying data
 Login/Join
 
Gold member
posted
I've been scouring the Forum and have not found a solution for this problem. We have an Active Dashboard created in version 7 InfoAssist and now being used in 8203. One column on one of the reports has a lot of data that wraps over multiple lines, the columns to the left of that column center their data which happens to be a single line, so we get a report that looks like this:
(I don't know why it wouldn't leave the blanks in so I had to put "." to keep the column spacing in my example.)
Column1..Column2.....Column3
.....................Lots of text here that goes
1/1/2019..Mr. Smith..on and on and on and on and
.....................so forth
.....................This is the next record but
.....................can you tell who it belongs
1/2/2019..Mr. Jones..to easily? I don't think so!
.....................It can get very confusing
.....................to follow.

It can be a bit hard to match up the data in the first two columns when Column3 has multiple lines.

Part of the issue may be the way the data in Column3 is wrapping -- it is wrapping on embedded breaks.

Any help is greatly appreciated.

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


WebFOCUS 8.2.03 (recent upgrade from 8105M)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 82 | Registered: December 05, 2017Reply With QuoteReport This Post
Master
posted Hide Post
Without knowing what your styling looks like, the first thing that comes to mind is to try alternate row shading.
TYPE=DATA, BACKCOLOR=( 'WHITE' RGB(227 232 238) ), $
 
Posts: 746 | Registered: April 23, 2003Reply With QuoteReport This Post
Guru
posted Hide Post
How would you like the data vertically aligned? Top? Middle? Bottom?

Also, what stylesheet are you using?


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 257 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Guru
posted Hide Post
Here is an example using the CAR file and simulating a column with multi-line wrapped text on embedded breaks. I have put in the formatting that David Briars suggested along with some formatting using the *TABLE_JS formatting available in Active Reports to vertically align the text of all table cells to the bottom:
  
TABLE FILE CAR
SUM
    COMPUTE LOTSOFDATA/A200V ='Model: ' || MODEL || '<br>BodyType: ' || BODYTYPE || '<br>Dealer Cost: ' || FTOA(DEALER_COST, '(D12M)', 'A25V')  || '<br>Retail Cost: ' || FTOA(RETAIL_COST, '(D12M)', 'A25V') || '<br>Sales: ' || FTOA(SALES, '(D12M)', 'A25V') ;
BY COUNTRY
BY CAR 
ON TABLE SET BYDISPLAY ON
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=DATA, BACKCOLOR=( RGB(227 232 238) 'WHITE' ), $

*TABLE_JS
"styles" : {
    "html": {
        "td": [
            "vertical-align: bottom;",
        ],
    }
}
*END

ENDSTYLE
END


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 257 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I would probably go for plain old CSS, unless there's some reason that's not supported in AHTML?

...
ON TABLE SET HTMLCSS 'IBFS:/something/something/myReport.css'
ON TABLE SET STYLE *
TYPE=DATA, CLASS=vTop,$
ENDSTYLE
END


And in myReport.css:
.vTop { vertical-align: top; }
.vBottom { vertical-align: bottom; }
/* etc. */


If you need to include some common CSS too, you can @import that in this specific CSS file.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1600 | Location: Enschede, Netherlands | Registered: August 12, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
*TABLE_JS
"styles" : {
"html": {
"td": [
"vertical-align: bottom;",
],
}
}
*END

Nice to see you using the latest syntax H! My regards to the team.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.05 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.05 standalone on Windows 10 
 
Posts: 5487 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
Hallway - THANKS! That worked perfectly.

Thanks everyone for your input. I love this forum! Big Grin


WebFOCUS 8.2.03 (recent upgrade from 8105M)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 82 | Registered: December 05, 2017Reply With QuoteReport This Post
Guru
posted Hide Post
Excellent! I'm glad that it helped. Big Grin


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 257 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] vertically justifying data

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