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] Using !DOCTYPE line in htmlform causing problems with heading alignment

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Using !DOCTYPE line in htmlform causing problems with heading alignment
 Login/Join
 
Platinum Member
posted
Hi All,

We are using webfocus reports in a project that will be rendered via IBM Websphere Portal. The webfocus reports look FINE when I run them via dev studio, but when they are rendered via the portal, the spacing for headings and footings get messed up. The code below shows you what happens. First run the code just like it is here, then run it with the "-*< !DOCTYPE" line un-commented out. The headings do not line up as before.

Is there a setting or a work-around to get webfocus to create html that will work with this DOCTYPE line? I'm not sure I'm asking the right question here, but any help would be appreciated.

Thanks
Jim

-*
DEFINE FILE CAR
RUN_DT/I8MDYY = &MDYY;
END
-*
TABLE FILE CAR
HEADING
"Run Date:Car Report<+0>Page:<+0>" "
PRINT
CAR
MODEL
BY COUNTRY
ON COUNTRY PAGE-BREAK
-*WHERE COUNTRY EQ 'ENGLAND'
-*ON TABLE SET PAGE-NUM TOP
ON TABLE HOLD FORMAT HTMTABLE AS GSBIMT05
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,SIZE=9,STYLE=NORMAL,FONT=ARIAL,GRID=OFF,WRAP=OFF, $
-*
TYPE=HEADING, SIZE=11, STYLE=BOLD, $
TYPE=HEADING, LINE=1, ITEM=1, WIDTH=0.90, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=1, ITEM=2, WIDTH=1.30, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=1, ITEM=3, WIDTH=3.00, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=4, WIDTH=0.90, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=1, ITEM=5, WIDTH=0.50, JUSTIFY=RIGHT, $
-*
ENDSTYLE
END
-RUN
-*
-HTMLFORM BEGIN
-*< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
!IBI.FIL.GSBIMT05;
-HTMLFORM END

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


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Expert
posted Hide Post
We use this:
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">


More info here.


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
I get the same result using this DOCTYPE as the other one. Why does the heading/footing styling go bad when this is used? Is there a way to get webfocus to create html that would work the same with or without this DOCTYPE line?


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Expert
posted Hide Post
The "only" reason we use is to FREEZE HEADINGS, along with CSS and anchor settings.

Why are you using it?

I fixed your code so it displays correctly...

  
APP PREPENDPATH IBISAMP
-RUN
DEFINE FILE CAR
RUN_DT/A20 = 'Run Date: ' | '&DATEMDYY.EVAL';
DUMMY/A1      = ' ';
END
-*
TABLE FILE CAR
HEADING
"<RUN_DT<+0>Car Report<+0>Page:<+0><TABPAGENO"
PRINT
CAR
MODEL
DUMMY AS ''
DUMMY AS ''
BY COUNTRY
ON COUNTRY PAGE-BREAK
-*WHERE COUNTRY EQ 'ENGLAND'
-*ON TABLE SET PAGE-NUM TOP
ON TABLE HOLD FORMAT HTMTABLE AS GSBIMT05
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,SIZE=9,STYLE=NORMAL,FONT=ARIAL,GRID=OFF,WRAP=OFF, $
-*
TYPE=HEADING, SIZE=11, STYLE=BOLD, HEADALIGN=BODY, COLSPAN=5,$
TYPE=HEADING, LINE=1, ITEM=1, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=3, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=1, ITEM=4, JUSTIFY=RIGHT, $
-*
ENDSTYLE
END
-RUN
-*
-HTMLFORM BEGIN
!IBI.FIL.GSBIMT05;
-HTMLFORM END


Wrap your code "within" the RED code tags...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 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     [CLOSED] Using !DOCTYPE line in htmlform causing problems with heading alignment

Copyright © 1996-2020 Information Builders