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     new line in webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
new line in webfocus
 Login/Join
 
Master
posted
I'm concatenating two fields and displaying in my report. Right now, the way it displays as

AA/A5='xxxxx';
BB/A5='XXXXX';
CC/A12=AA | ' ' | BB ;


output
CC
xxxxx XXXXXX

I need the output to show as,

CC
xxxxx
XXXXX
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
It may depend on your output type. Can you get it to WRAP at the width of 5 characters?
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Master
posted Hide Post
WRAP wont work in HTML
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
Have you tried concatenating ascii value of 13 (carriage return) instead of ' ' (space)?

If you want more information check out this ascii table.

The WF function you will need is HEXBYT('13', 'A1');
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Guru
posted Hide Post
Is there any reason you aren't using the OVER command to print your two original fields?
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Silver Member
posted Hide Post
Hi,

I think following code may be helpful for you....

TABLE FILE GGSALES
SUM
UNITS OVER
DOLLARS
ACROSS
CATEGORY
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
ENDSTYLE
END

Thanks & Regards,
Goldy
 
Posts: 30 | Location: India | Registered: February 23, 2005Report This Post
Master
posted Hide Post
I'm not using OVER because Field1 has to print on 1st line after that only Field2 has to print in each line.

When ever BY value changes, then Field1 has to print as 1st line and Field2 will follow with multiple lines.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
Kamesh,
If your output is HTML give this a try it works in WF 7.1.0
DEFINE FILE CAR
CAR_COUNTRY/A40 = CAR || '
' || COUNTRY;
END
-RUN
TABLE FILE CAR
PRINT
CAR
COUNTRY
CAR_COUNTRY
END
-RUN[/code]

This message has been edited. Last edited by: <Mabel>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Master
posted Hide Post
Hi CurtisA,

Your code works good for HTML. I'm using WRAP for PDF. This solves my problem. Thanks a lot.

-Kamesh
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Master
posted Hide Post
Like BR in html, is there anything else we can use in PDF other than WRAP.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
Did you try adding the ascii character for a carriage return.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Master
posted Hide Post
Yes, that didn't work.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
I just did the wrap in 5.33 with both html and pdf, and it worked fin.

TYPE=REPORT,
COLUMN=N3,
WRAP=0.541667,

You might have to play with the sizing (in inches) to get exactly what your looking for.
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Master
posted Hide Post
I'm not able to use the WRAP as my values are dynamic.

Field1 | ' ' | Field2

Output
-------
Field1
Field2

Field1 will vary for each record.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
If the result set isn't too big, you can always use a sledge hammar and append two outputs together.

for example:

TABLE FILE CAR.MODEL
PRINT
COMPUTE C_SORT/I5 = 1;
COMPUTE C_COL/A100 = WARRANTY;
BY CAR
BY MODEL
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS TT FORMAT ALPHA
END

FILEDEF TT DISK TT.FTM (APPEND

TABLE FILE CAR
PRINT
COMPUTE C_SORT/I5 = 2;
COMPUTE C_COL/A100 = BODYTYPE;
BY CAR
BY MODEL
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS TT FORMAT ALPHA
END

TABLE FILE TT
PRINT C_COL
BY CAR
BY MODEL
BY C_SORT NOPRINT
END
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Master
posted Hide Post
I can't do that...my report is complicated compound report...I can't change much now as already most of the testing is completed on that...

I'm just trying to put some patch...
 
Posts: 780 | Location: Florida | Registered: January 09, 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     new line in webfocus

Copyright © 1996-2020 Information Builders