Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [TIP] Including code in your FocalPoint Post
Go
New
Search
Notify
Tools
Reply
  
[TIP] Including code in your FocalPoint Post
 Login/Join
 
Expert
posted
This has been mentioned many times, but perhaps we need to "sticky" this topic for a while...

When you include code (WebFOCUS, HTML, JavaScript, CSS, etc.) you should use the button at the top right of the "Post A Reply" pop-up.

Clicking this button will add
[code]
[/code]
tags to your post.

Paste the code between these tags.

Without the code tags, any HTML code included in a post will become part of the HTML of the web browser page and will either cause a problem with a page or might just not display. Including the code tags disables HTML translation and displays the code as-is. It is good practice to use the code tags for any kind of code.

Here is example code:

TABLE FILE CAR
SUM
SALES
BY COUNTRY
END

<style type="text/css">
body
{
font-family: "Trebuchet MS", sans-serif;
font-weight: bold;
size: 30px;
}
</style>

<script type="text/javascript">
alert('ha ha');
</script>


You can also use this technique when displaying report output where there is more that one space between column data. For example, I have pasted report output without code tags:

COUNTRY SALES
--------- -----
ENGLAND 12000
FRANCE 0
ITALY 30200
JAPAN 78030
W GERMANY 88190

Here it is with code tags:

COUNTRY   SALES
--------- -----
ENGLAND   12000
FRANCE        0
ITALY     30200
JAPAN     78030
W GERMANY 88190

Nicer, innit?

I hope this helps the newer members of the forum.

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


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, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Thanks Francis for sharing the tip with all. Let's make this a sticky for a few days. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1950 | Location: New York | Registered: November 16, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [TIP] Including code in your FocalPoint Post

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.