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] Change Attributes on Table Data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Change Attributes on Table Data
 Login/Join
 
Member
posted
I have a report that prints a long string in between tabledata. I need to add the valign=top as an attribute.

I viewed source, saved to another HTML and added the attribute so I know this is what I need. But How do you change the table data in the HTML that Webfocus generates.


<TD BGCOLOR="#EAEAFF" valign="top">
<FONT FACE="ARIAL" SIZE=1>G00018347</FONT></TD>

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


7.6.2
 
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008Report This Post
Expert
posted Hide Post
You can specify a CSS class in the WebFOCUS stylesheet for the column. Then when displaying the HTML report, create the CSS class with the vertical-align attribute.


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
A working example:

TABLE FILE GGSTORES
PRINT
STORE_NAME
BY STATE
ON TABLE HOLD AS H001 FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=REPORT, BORDER=1, BORDER-COLOR=SILVER, FONT='ARIAL', SIZE=8, $
TYPE=DATA, COLUMN=STATE, CLASS=css1, $
TYPE=DATA, COLUMN=STORE_NAME, CLASS=css2, $
END
-RUN

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
.css1 { vertical-align: top; }
.css2 { width: 20px;}
</STYLE>
</HEAD>

<BODY>
!IBI.FIL.H001;
</BODY>
</HTML>


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
Member
posted Hide Post
I tried the below:
TABLE FILE HOLD
PRINT
     'HOLD.HOLD.ID'
     'HOLD.HOLD.NAME'
     'HOLD.HOLD.PROG'
     'HOLD.HOLD.FTPT'
     'HOLD.HOLD.NEW_CRSE2'
     'HOLD.HOLD.DTYPE'
     'HOLD.HOLD.DEGREE'
     'HOLD.HOLD.DEPT' NOPRINT
     'HOLD.HOLD.DSPQUAL'
     'HOLD.HOLD.SORT'
     'HOLD.HOLD.XX'
ON TABLE NOTOTAL
ON TABLE HOLD AS KPI3 FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=REPORT, BORDER=1, BORDER-COLOR=SILVER, FONT='ARIAL', SIZE=8, $
TYPE=DATA, COLUMN=STATE, CLASS=css1, $
TYPE=DATA, COLUMN=STORE_NAME, CLASS=css2, $
END

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
.css1 { vertical-align: top; }
.css2 { width: 20px;}
</STYLE>
</HEAD>
<BODY>
<TABLE CELLPADDING=0 WIDTH="100%" ><TR>
<TD>
<FONT FACE="ARIAL">PAGE  </FONT><FONT FACE="ARIAL">   1</FONT></TD></TR></TABLE></TD>
</TR>
<TR>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">ID</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">NAME</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">PROG</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">FTPT</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">NEW_CRSE2</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">DTYPE</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">DEGREE</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">DSPQUAL</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">SORT</FONT>[/b]</TD>
<TD VALIGN=BOTTOM BGCOLOR="#93ACDB">
[b]<FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFF">XX</FONT>[/b]</TD>
</TR>
</TABLE>
!IBI.FIL.KPI3;
</BODY>
</HTML>
-HTMLFORM END



it still doesn't add the attribute..

if I edit the html and redisplay it .. with

<td valign=top> 
...it works..

Any help would be appreciated.

this is the view source

<TD>
<FONT FACE="ARIAL" SIZE=1>ACC 431A Federal Income Tax I
ACC 431B Federal Income Tax II
ACC 631 Administrative Acctg I
ACC 633 Sem Tax Plcy, Prac & Procd
ACCT 3432 Intermediate Acct II
ACCT 4431 Auditing I
ACCT 4532 Adv Financial Accounting
ACCT 4731 Seminar in Accounting
ACCT 5331 Acct Analysis for Mgmt Decisio
ACCT 5332 Acct Information Systems
ACCT 6376 Fin & Manag Acct Thry I
Certification: Distance Learning
Public School Teaching Experience: 1 year
SJCD STATEMENT
 OF QUALIFICATIONS</FONT></TD>



the style sheet should handle it also.

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


7.6.2
 
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008Report This Post
Member
posted Hide Post
Sorry I figured it out.. i need to set the column to the columns in my table..

Thanks


7.6.2
 
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008Report This Post
Expert
posted Hide Post
Make sure you wrap your code in the tags


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] Change Attributes on Table Data

Copyright © 1996-2020 Information Builders