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     comma in column title

Read-Only Read-Only Topic
Go
Search
Notify
Tools
comma in column title
 Login/Join
 
Gold member
posted
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
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
<Pietro De Santis>
posted
If the report is HTML only, you could use the ISO code for comma:
,
(&|#44; in WebFOCUS to avoid evaluation of the amper).
 
Report This Post
Gold member
posted Hide Post
Exactly what I needed!

thanks,

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
Member
posted Hide Post
What if you are using EXL2K?
 
Posts: 1 | Location: McLean, VA | Registered: July 12, 2005Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
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.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Expert
posted Hide Post
jumpin jeehosafats
that actually works!
thanks spence




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
this has always worked in the focus language way before webfocus.


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
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.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
Sweat this works in PDF too. Nice Thread
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report 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     comma in column title

Copyright © 1996-2020 Information Builders