Focal Point
comma in column title

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7541058331

April 27, 2005, 03:30 PM
Leo L
comma in column title
In one report I have a column title which I want displayed AS 'First 1,000'. But the comma is reserved in the title to break the line into multiple lines. Is there anyway to get it to display in the column total or am I forced to go without commas? AS 'First 1000'

thanks,

Leo
April 27, 2005, 03:44 PM
<Pietro De Santis>
If the report is HTML only, you could use the ISO code for comma:
,
(&|#44; in WebFOCUS to avoid evaluation of the amper).
April 27, 2005, 04:13 PM
Leo L
Exactly what I needed!

thanks,

Leo
May 19, 2006, 04:37 PM
Steve McGuire
What if you are using EXL2K?
May 19, 2006, 05:34 PM
Prarie
Here's a thought if you don't mind an underscore...or you could white it out in the style sheet

DEFINE FILE CAR
FIRST_1,000 = SALES;
END
TABLE FILE CAR
PRINT FIRST_1,000
BY CAR
ON TABLE PCHOLD FORMAT EXL2K
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
you can define the field as First 1,000 and include the field in ' ' when printing.

DEFINE FILE CAR
FIRST 1,000 = SALES;
END
TABLE FILE CAR
PRINT 'FIRST 1,000'
BY CAR
ON TABLE PCHOLD FORMAT HTML
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
jumpin jeehosafats
that actually works!
thanks spence




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
We're now getting to the situation where something that shouldn't work, does.
All I would say is beware, because if you start to rely upon it you will soon find that in subsequent releases the behaviour will be tightened and you may find it no longer works.

Rule no.1 - Use undocumented features at your own risk!

T (harbinger of doom) Smiler



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 
this has always worked in the focus language way before webfocus.


WF 8 version 8.2.04. Windows.
In focus since 1990.
Spence,

The important thing is - is it a documented syntax?

I would guess the answer is no and therefore that is why I suggest caution.

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 
T, I understand your point that this may be an undocumented feature. There have been file structures that allow for a field name to contain a space. In order for FOCUS to print a field with a space it needs to be included in single quotes.

SET ASNAMES = ON
TABLE FILE CAR
PRINT SALES AS 'CAR SALES'
BY COUNTRY
ON TABLE HOLD
END
? HOLD
TABLE FILE HOLD
PRINT 'CAR SALES'
BY COUNTRY
END
-EXIT


WF 8 version 8.2.04. Windows.
In focus since 1990.
Spence, I agree that the method that you have shown works and I find it very tempting to utilise that quirk, however, the following is from 4.3 documentation -

Valid characters in a name. All names must begin with a letter, and can include any combination of letters, numbers, and underscores ( _ ).

The names of applications, virtual servers, and deployment scenarios can also include embedded spaces. (Other types of names cannot include spaces.)

All I say is user beware.

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 
Having said that .......

In the Creating Reports manual (7.1) page 10-15 states -

Special characters and blanks used in the AS phrase are preserved in the field name that is created when SET ASNAMES is used. Use single quotation marks around the non-standard fieldnames when refering to them in the newly created Master File.

So it would appear that there is some documentation to support it's usage. Well done!

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 
Sweat this works in PDF too. Nice Thread