December 11, 2006, 05:04 AM
Adityaaligning the OVER field
Hi,
I have used the OVER command to display fields vertically instead of horizontally.For all the fields displayed i have applied a style sheet.The style sheet does not work for the field that is used in the BY clause.
e.g
TABLE FILE SQLOUT
PRINT
A OVER
B
BY B NOPRINT PAGE_BREAK
ON TABLE HOLD AS REPORT FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=TITLE, COLUMN=A, CLASS=Title_Col1, $
TYPE=TITLE, COLUMN=B, CLASS=Title_Col1,$
TYPE=DATA, COLUMN=A, CLASS=Data_Col1, $
TYPE=DATA, COLUMN=B, CLASS=Data_Col1, $
END
-HTMLFORM BEGIN
<style type="text/css">
.Title_Col1 { width:60%;font-family:Tahoma; font-size:8pt; font-weight:bold; color:#000000;
background-color:#ffffff; text-align:center;}
.Data_Col1 {width:40%; font-family:Courier; font-size:10pt; color:#000000;
background-color:#ffffff; text-align:left; border-style: NONE;}
</style>
<BODY>
<div align="center">
!IBI.FIL.REPORT;
</div>
</BODY>
</HTML>
-HTMLFORM END
So for B the alignment does not work.
Regards,
Aditya
December 11, 2006, 05:44 AM
Tony AAditya,
You have two occurences of the Column B (even though one is NOPRINT) so you will need to differentiate between the two in your stylesheet by using the COLUMN=Nn notation (where "n" is the column number). A good document for stylesheet syntax is the WebFOCUS Quick Reference "Card" which is actually a booklet!!
Search for the document on the Tech Support site. You should be able to download it in PDF. I have printed one and keep it with me for those "dark" moments when the mind goes blank
T
December 11, 2006, 06:46 AM
AdityaThanks Tony,
Its working now.
Regards,
Aditya
December 11, 2006, 07:03 AM
Tony AThat's good to hear.
T
December 11, 2006, 10:54 AM
Francis MarianiYou asked the same question in "alignment problems" and probably in "OVER TABLE alignment problem".
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
December 11, 2006, 11:21 PM
AdityaHi francis,
Actually i had a problem with the "alignment problems" post,as i was not able to see any replies on that particular page.It was may be because of the 'code' '/code' exclusion.So i thought of posting it again.
Regards,
Aditya
December 12, 2006, 10:33 AM
Francis MarianiWhen you post code, particularly when it contains HTML, add a [ code ] [ /code ] tag around the code, and check "Disable HTML" from the Options hyperlink on the left of the Posting window.
Cheers,
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