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] Two tables with different styling when printed in HTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Two tables with different styling when printed in HTML
 Login/Join
 
Member
posted
Hi,
I am trying to print the same table in repeat loop 2 times under two conditions.
for loop1 :Report by condition1
for loop2 :Report by condition2

such that the in HTML output table with condition1 will appear first then the same table filtered under the condition2.
When both having data the report works fine, since the same styling report is repeated in loop.

If anyone of the case is having no data i need to display a nodata message whose styling is different from the base table with data.

When both tables with different styling is printed in html format the borders, backcolor etc seem to disappear.But the same works fine with Excel format.I can't use the method by including .css stylesheet

Can anyone help me out.

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


WebFOCUS 7.7.2,
Windows XP, HTML,PDF,EXCEL
 
Posts: 12 | Registered: November 19, 2008Report This Post
Expert
posted Hide Post
It is uncanny that one of my users reported the very same problem at the same time you posted this question.

We have a temporary fix in that if we change this line:

ON TABLE SET HTMLCSS ON

to OFF, the styling issue goes away. You might want to try that. What we think is happening is that when the browser renders the page, it has 2 html documents in it, you can briefly see the sytling for the first one, but then I think it is being overlayed by the second one.

My user's resolution is eventually going to be the PDF Layout Painter which I don't think will help your situation.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
One option may be do a "ON TABLE HOLD AS MyTable FORMAT HTMTABLE" combined with a "-GOTO NoDataLabel" (up on no data)which contains the desired formatting of the "No Data Report" and embedding the "MyTable"

I know that will work. I only hope that it makes sense to you.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JG>
posted
Quite correct Doug.

It's is generally bad practice to render multiple complete HTML documents into a single window or frame.
It breaks all the rules and quite often breaks the content.

Create 2 HTMTABLEs and present them using

-HTMLFORM BEGIN
!IBI.FIL.REP1;
!IBI.FIL.REP2;
-HTMLFORM END

With the appropriate headers, body etc.
 
Report This Post
Expert
posted Hide Post
Thanks JG,
That with EMPTYREPORT could do the trick without the need for the check for no data.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
hi all,

Thanks that really helped me , now it works fine.

I used HTMLCSS before on table hold format and then created hold files as

ON TABLE HOLD AS TEMP1 FORMAT HTMTABLE
ON TABLE HOLD AS TEMP2 FORMAT HTMTABLE

-HTMLFORM BEGIN
<html>
<body>


<div align="center">
  !IBI.FIL.TEMP1;
 </div>
  <div align="center">
  !IBI.FIL.TEMP2;
  </div>
</body>
</HTML>
-HTMLFORM END

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


WebFOCUS 7.7.2,
Windows XP, HTML,PDF,EXCEL
 
Posts: 12 | Registered: November 19, 2008Report 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] Two tables with different styling when printed in HTML

Copyright © 1996-2020 Information Builders