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     [CLOSED] COMMA TITLE HEXBYT PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] COMMA TITLE HEXBYT PDF
 Login/Join
 
Platinum Member
posted
Hi,

I Need to create a title with a comma.
The comma Needs to be visible and does not Need to create a line break.

Tried everything with HEXBYT(44, 'A1') but it does not work..

Any ideas??

Thanks.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Expert
posted Hide Post
Hi Jenni,

If you only want HTML output then try the following -

TABLE FILE CAR
SUM RCOST AS 'Retail&|subqo;Cost'
BY COUNTRY
BY CAR
BY MODEL
END


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
… for PDF/XLSX output, you could use the following -

-SET &Comma = HEXBYT(130,'A1');
-SET &RCOST_TITLE = 'Retail&Comma.EVALCost'
TABLE FILE CAR
  SUM RCOST AS &RCOST_TITLE.QUOTEDSTRING
   BY COUNTRY
   BY CAR
   BY MODEL
ON TABLE PCHOLD FORMAT PDF
END


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
Virtuoso
posted Hide Post
Or (tricky way but it works)

&XTITLE will work with HTML only
-SET &XTITLE = 'AUTO' | '&|#44;' | 'MOBILE';
DEFINE FILE CAR
'AUTO,MOBILE'/A20 = CAR;
END

TABLE FILE CAR
PRINT CAR AS &XTITLE
      'AUTO,MOBILE'
      COMPUTE 'MOBILE,AUTO'/A20 = CAR ;
BY COUNTRY
ON TABLE PCHOLD FORMAT PDF
END


@Tony : yours first option is not working at all with any format and second one doesn't work with XLSX nor EXL2K, only HTML, PDF Frowner


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
quote:
second option doesn't work with XLSX nor EXL2K

Does for me, both formats.

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
Virtuoso
posted Hide Post
quote:
Originally posted by Tony A:
quote:
second option doesn't work with XLSX nor EXL2K

Does for me, both formats.

T


Hummmmm
Related to code page, NLS settings ?...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
This works for me in HTML, XLSX, PDF and EXL2k ...

-*
-SET &Comma = HEXBYT(130,'A1');
-*
TABLE FILE CAR
SUM RCOST AS 'Retail&Comma.EVALCost'
BY COUNTRY
BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT XLSX
END


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Expert
posted Hide Post
quote:
first option is not working at all with any format

Mistype for the HTML variable
- should be &|sbquo not &|subqo

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
Virtuoso
posted Hide Post
I can see in the source that &Comma it's a "," when I -TYPE &Comma
But Excel cannot display the comma.
I have a square at the comma position such as when an image cannot be displayed...

Probably related with regional settings... I must have I look into this.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by Tony A:
… for PDF/XLSX output, you could use the following -

-SET &Comma = HEXBYT(130,'A1');
-SET &RCOST_TITLE = 'Retail&Comma.EVALCost'
TABLE FILE CAR
  SUM RCOST AS &RCOST_TITLE.QUOTEDSTRING
   BY COUNTRY
   BY CAR
   BY MODEL
ON TABLE PCHOLD FORMAT PDF
END


T



it doesn't work, it Shows me a box where the comma is supposed to be.

Working with 8204


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Platinum Member
posted Hide Post
I just Need PDF, no XLSX or HTML is helpful for me


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Platinum Member
posted Hide Post
[quoteDEFINE FILE baseapp/CAR
'AUTO,MOBILE'/A20 = CAR;
END

TABLE FILE baseapp/CAR
PRINT
'AUTO,MOBILE'
ON TABLE PCHOLD FORMAT PDF
END[/quote]

´Works, but the next Thing is, that there are other commas, which Needs to line break my Text.

So something with HEXBYT(44, 'A1') would be better, sothat I can differ between real commas and line break commas... :/ Little tricky


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Expert
posted Hide Post
Is your server set for UNICODE?

What codepage are you using?

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
@Tony A: no I think it's UTF8
is there a possibility to check?


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Expert
posted Hide Post
I don't have an install configured with UTF8 but you could try -

-SET &Comma = HEXBYT(8218,'A1');


Look for an alternative character within the character sets available within your configuration.

The important thing is that char 44 will always cause a break within WF titles so you need to find an alternative - for me using ASCII, 130 did the trick.

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
Master
posted Hide Post
quote:
Originally posted by jenni:
@Tony A: no I think it's UTF8
is there a possibility to check?


Try the following to check what the code page is:

 
-TYPE Client Code Page   = &FOCCLIENTCP	
-TYPE Language Code Page = &FOCCODEPAGE 


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Platinum Member
posted Hide Post
With
-TYPE Client Code Page = &FOCCLIENTCP
-TYPE Language Code Page = &FOCCODEPAGE
I'll get 65001


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Virtuoso
posted Hide Post
Jenni

If this is still an issue please open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 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     [CLOSED] COMMA TITLE HEXBYT PDF

Copyright © 1996-2020 Information Builders