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     Encapsolate test in a "PRE" tag?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Encapsolate test in a "PRE" tag?
 Login/Join
 
Member
posted
Is it possible to display text in a HTML "PRE" tag?

I have text like this in the DB (Hope it shows up correctly):
ABMZ   DIAMETER                      18.000INCHES NOMINAL


However it shows up like this:
ABMZ DIAMETER 18.000INCHES NOMINAL


Test: XP / WF 7.1.1
 
Posts: 22 | Registered: November 21, 2005Report This Post
Platinum Member
posted Hide Post
Try this:

PRETXT/A250 = '<pre>' || TEXT || '<pre>' ;

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Member
posted Hide Post
quote:
PRETXT/A250 = '<pre>' || TEXT || '<pre>' ;

Regards,
Mikel


Mikel,
I tried your suggestion, and it works fine, except for when the column is of oracle type LONG. I'm using the oracle 9.1.2 JDBC driver.

The error message I get from WF is
(FOC280) COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED


The LONG type in oracle is a blob. I've tried doing some transformations on the data, but Oracle prevents you from doing anything (including to_lob) unless you are inserting that data into a table. Any ideas on how to force WF to treat the column as a ALPHA? It is typed as an alpha in the master file.

Here is the relevant line from my MAS file:
  FIELD=DETAIL, ALIAS=DETAIL, USAGE=A4096V, ACTUAL=A4096V


Test: XP / WF 7.1.1
 
Posts: 22 | Registered: November 21, 2005Report This Post
Platinum Member
posted Hide Post
Another way to prevents from collapsing sequences of whitespace (=pre tag) is using css styles (CSS white-space: pre; property)

I think this way will works with your blobs fields.

Example:

TABLE FILE CAR
  PRINT
    COUNTRY
    COMPUTE CARMODEL/A40 = CAR | MODEL ;
  ON TABLE HOLD AS REPORT FORMAT HTMTABLE
  ON TABLE SET STYLE *
    TYPE=DATA, CLASS=pre, $
END
-RUN

-HTMLFORM BEGIN
<style type="text/css">
  .pre {
      font: 1em courier new, monospace;
      white-space: pre;
    }
</style>
!IBI.FIL.REPORT;
-HTMLFORM END


Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Expert
posted Hide Post
Mikel,

Didn't work for me Frowner what browser versions is it supported on? I'm on MSIE 6.0.2900.2180.

Dan,

How about changing the USAGE option in the master file to get rid of the variable aspect of it? Not sure whether it will work as I don't have access to similar data, but it's worth a try?
quote:
FIELD=DETAIL, ALIAS=DETAIL, USAGE=A4096, ACTUAL=A4096V


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
Expert
posted Hide Post
A little bit of digging and it appears that MSIE 6 needs to be forced to parse CSS code in a particular mode of "strict".

There are two modes (apparently?) strict and quirks. To get the strict mode to work in Mikels example I had to modify the HTML code like this -
-HTMLFORM BEGIN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Rendering modes - white-space (strict)</title>
<style type="text/css">
  .pre {
      font: 1em courier new, monospace;
      white-space: pre;
    }
</style>
</head>
<body>
!IBI.FIL.REPORT;
</body>
</html>
-HTMLFORM END
and then I could see the result.

If you would like to know more then check out this site.

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
Member
posted Hide Post
Mikel and Tony,
Thank you so much for your help! Worked like a charm!

Tony, to address this
quote:
How about changing the USAGE option in the master file to get rid of the variable aspect of it? Not sure whether it will work as I don't have access to similar data, but it's worth a try?


It doesn't make a difference if I do that Frowner

But, using what Mikel did, and you built upon I have what I needed!

Thanks,
dan


Test: XP / WF 7.1.1
 
Posts: 22 | Registered: November 21, 2005Report 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     Encapsolate test in a "PRE" tag?

Copyright © 1996-2020 Information Builders