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 Excel cell (SOLVED)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
New line in Excel cell (SOLVED)
 Login/Join
 
Platinum Member
posted
Hi,
Here is a simple example, I have data as below. In the excel sheet I should get the model in the next line after car within the same cell.
1.Is there a way to concatenate a new line between car and model for field1. That would be my ideal solution.
2.Also is there a way to style car and model differently for Field1.Example bold only car?


 DEFINE FILE CAR
FIELD1/ A100 = CAR| MODEL;
END

TABLE FILE CAR
PRINT
BODYTYPE	
FIELD1
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
END


-EXIT

 

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Silver Member
posted Hide Post
quote:
way to concatenate a new line between car and model for field1. That would be my ideal solution.
2.Also is there a way to style car and model differently for Field1.Example bold only car?


Is this what you are looking for?
  
SET BYDISPLAY=ON
TABLE FILE CAR
PRINT
CAR AS '' OVER
MODEL AS ''
BY COUNTRY
BY BODYTYPE
ON TABLE PCHOLD FORMAT EXL2K
END


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Master
posted Hide Post
WF WORLD, getit wants CAR and MODEL in the same cell. What you did just puts them in the same column.

Think about the problem. How would you do this in EXCEL? Well you would type JAGUAR then press ALT-ENTER (which inserts a Line Feed) followed by typing V12XKE AUTO. So in WebFOCUS just do the same thing.

-SET &LF=HEXBYT(10,'A1');
DEFINE FILE CAR
FIELD1/A100 = '<b>' | CAR || '</b>'|| '&LF' || MODEL;
END

TABLE FILE CAR
PRINT
BODYTYPE	
FIELD1
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
END

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


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Platinum Member
posted Hide Post
Jgelona ,
This is exactly what I need but.. I got the error missing quote marks?

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
Small change to the code:

DEFINE FILE CAR
FIELD1/A100 =  '<b>' || CAR || '</b>' || HEXBYT(10,'A1') || MODEL;
END

TABLE FILE CAR
PRINT
BODYTYPE	
FIELD1
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Awesome!..Thanks Jgelona and Francis.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Master
posted Hide Post
You're welcome. Not sure why you got an error. The code works fine in 7.6.11. I use this technique a lot. Hope this is not some kind of code tightening in 7.7 and higher.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
I believe the solution offered is dependent on HTMLENCODE being SET to OFF, which allows imbedded tags (in column titles and values) to act as hypertext in the generated HTML.

With SET HTMLCODE=ON, carets are "escaped" and will be treated as text rather than hypertext.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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 Excel cell (SOLVED)

Copyright © 1996-2020 Information Builders