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] Dynamic Column width using WHEN

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Dynamic Column width using WHEN
 Login/Join
 
Platinum Member
posted
I am building a compound PDF report where i am showing and hiding the columns based on user selection.I set some variables Y and N and i use them in my stylesheet to set column width.But it is not working neither it gives me error.

Am I missing something

TYPE=REPORT,COLUMN=CAR,WRAP=1.60000,FONT='TIMES NEW ROMAN',WHEN=CAR EQ 'JENSEN',$

WF 8105

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Platinum Member
posted Hide Post
Try

TYPE=DATA INSTEAD OF TYPE=REPORT.

Thanks
 
Posts: 109 | Registered: February 02, 2016Report This Post
Platinum Member
posted Hide Post
No Pav,
It is not working
 
Posts: 181 | Registered: October 25, 2017Report This Post
Platinum Member
posted Hide Post
try this once
 TABLE FILE CAR
PRINT
*
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=CAR,WRAP=1.60000,FONT='TIMES NEW ROMAN',WHEN=CAR EQ 'BMW',COLOR=RED,$
ENDSTYLE
END
-RUN 


and also paste your sample code once.
 
Posts: 109 | Registered: February 02, 2016Report This Post
Platinum Member
posted Hide Post
The COLOR and other font styles works.This happens only with column widths

Sample code

TABLE FILE CAR
SUM	SALES
BY CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=DATA ,COLUMN=CAR,WRAP =5.60000,FONT='TIMES NEW ROMAN',WHEN=CAR EQ 'JENSEN',$
ENDSTYLE
END 
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
Siva

Please open a case with techsupport on this, it sounds like a bug to me.


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
Platinum Member
posted Hide Post
Try
DEFMACRO=COND1, MACTYPE=RULE, WHEN=CAR EQ 'JENSEN', $
TYPE=DATA,COLUMN=CAR,WRAP=1.60000,FONT='TIMES NEW ROMAN',MACRO=COND1,$

I have had similar situations where using WHEN directly did not work.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report 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] Dynamic Column width using WHEN

Copyright © 1996-2020 Information Builders