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] vertically justifying data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] vertically justifying data
 Login/Join
 
Platinum 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 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 183 | Location: Indiana | Registered: December 05, 2017Report 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: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
How would you like the data vertically aligned? Top? Middle? Bottom?

Also, what stylesheet are you using?


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Master
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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Hallway - THANKS! That worked perfectly.

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


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 183 | Location: Indiana | Registered: December 05, 2017Report This Post
Master
posted Hide Post
Excellent! I'm glad that it helped. Big Grin


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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] vertically justifying data

Copyright © 1996-2020 Information Builders