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     Wrapping issue in Excel output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Wrapping issue in Excel output
 Login/Join
 
<Shyam L>
posted
Hi All,
I am not able to wrap a column in Excel using "Type=Report,Column=....,Wrap=0.5,$" syntax. I observed that if a column is used both in BY clause (with NOPRINT) and PRINT clause, then wrap doesnt work for that column. Is WebFOCUS not able to resolve which column to wrap because it appears twice? Has anyone encountered similar issue?
I cannot avoid the NOPRINT clause (i have 8 BY clause with NOPRINT and 25 PRINT columns) bcoz I need the output in a certain order. Any ideas?
 
Report This Post
Guru
posted Hide Post
duplicate the field by using DEFINE and name it field_1 or whatever, then the original field for your BY phrase and use the duplicate field_1 in your print statement. you can then reference the columns independantly.

or use N(Col Number) as your reference in the style sheet code.


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
<Shyam L>
posted
Nubi,
Thanks for the post.
I was looking at a generic solution which can be used across programs. Using N(col no) is not helping. Still I get the same issue. Define I want to keep as a last solution bcoz i need to customize it for each of my fexes.
 
Report This Post
Virtuoso
posted Hide Post
Shyam,

There are a number of ways to do this generically.

You can also use the 'Pn' column notation. The n part is the number of the coulmn as it appears in the output. If using the 'N(col no)' is not working for you then you might be counting the columns incorrectly. Using 'Pn' is the easiest column notation method.

Also, instead of using DEFINE you could use COMPUTE.

TABLE FILE EMPLOYEE
SUM HIRE_DATE
COMPUTE NEWSAL/D12.2M=SALARY;
BY DEPARTMENT
BY SALARY NOPRINT
BY LAST_NAME
ON TABLE SET BYPANEL ON
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=NEWSAL, WRAP=0.25,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Shyam,

As correctly surmised, the problem arises because you have the same field specified twice in your stylesheet. Use the form -
TYPE=REPORT, COLUMN=[fieldename](*), $ to specify all occurences of the field [fieldname].

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
Tony A's solution is better than my suggestion as you won't have to find out which number across your column is (which you have to do with COLUMN = N()) so i'd use his suggestion in this instance


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
<Shyam L>
posted
Thanks Tony...it works beautifully.
Thanks to Nubi and Mgrackin as well.
Smiler
 
Report 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     Wrapping issue in Excel output

Copyright © 1996-2020 Information Builders