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     [Solved]shift to new line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]shift to new line
 Login/Join
 
Member
posted
Hello Everyone,

I have the below code snippet where I'm trying to get Hello in one line and John in another line. I'm using CTran function where "," is being replace to "/n"(new Line). But when I'm running this, I'm getting some weired error. Can someone help with this?

Thanks,

-SET &ECHO=ON;
-SET &COMMENTS = 'Hello,john';
-SET &ALT_ADDR = CTRAN(50, &COMMENTS, 44, 10, 'A50');
-TYPE &ALT_ADDR;

TABLE FILE CAR
PRINT COUNTRY AS 'Country,Name'
END

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


7.6.4,unix
all output
 
Posts: 17 | Registered: April 30, 2010Report This Post
Virtuoso
posted Hide Post
quote:
I'm trying to get Hello in one line and John in another line

Where exactly do you want that to appear? In a column title? in a heading? as the value of an actual field?

You have some Dialog Manager conversion operating in &variables but your actual report makes no use of them so it is not clear what your goal is.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Member
posted Hide Post
I want that to be displayed on the Header.


7.6.4,unix
all output
 
Posts: 17 | Registered: April 30, 2010Report This Post
Virtuoso
posted Hide Post
So first off, you've got to have a line that displays some sort of heading such as

HEADING
"&ALT_ADDR "

However this isn't really the way to handle splitting the line into multiple lines. Probably best to use GETTOK to create multiples and then

HEADING
"&LINE1"
"&LINE2"

If the report output is html only you can simply replace any comma in the string with a
 <br> 

and you get the same result.

You can reference this post for use in PDF output.

This message has been edited. Last edited by: Darin Lee,


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
Darin I think you missed the code tag for
<br>
above.



You can also use the
<br>
with MARKUP=ON in the stylesheet, but not knowing the layout of the report, it may cause problems.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [Solved]shift to new line

Copyright © 1996-2020 Information Builders