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] STYLESHEET DELETE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] STYLESHEET DELETE
 Login/Join
 
Platinum Member
posted
Can you delete a column using the stylesheet? Something like:
TYPE=REPORT,
COLUMN=N5,
DELETE... or something,
$

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


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Expert
posted Hide Post
What are you trying to do, Mark? The answer to your direct question is no. Maybe you can make it invisible with font color or something.

But if you don't want a column to appear on your report, you can use Dialogue Manager to bypass it. There are a number of ways to do that.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
Or use NOPRINT in the report.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
Or conditionally use NOPRINT as in:

TABLE FILE CAR
PRINT CAR
      MODEL &NOPRINT
   BY COUNTRY


Just have logic to set &NOPRINT to NOPRINT or blank.


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
If the intention is to mask data in specific rows of a column and not the entire column, here is one way -

TYPE=DATA,COLUMN=COL1,COLOR=WHITE,BACKCOLOR=WHITE,WHEN=COL1 EQ 0,$

or

TYPE=DATA,COLUMN=COL1,COLOR=SILVER,BACKCOLOR=SILVER,WHEN=COL1 EQ 0,$

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Thanks for the response. I set the columnwidth to 0 in the stylesheet. That basically just hid the column in the excel output, instead of getting rid of it, but it'll work.


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Expert
posted Hide Post
quote:
columnwidth

And how did you do that? Neither WIDTH nor WRAP behave as you suggest?

Thanks,


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
Member
posted Hide Post
Can you unhide these column if you ever want them back..... I am using noprint and it hid the columns but I cannot unhide them later on.


Version of Webfocus = 766
Platform = Windows
wish to use all possible output formats.
 
Posts: 11 | Registered: November 19, 2009Report This Post
Expert
posted Hide Post
Does your site have a license for Active Reports, i.e. AHTML output? That output allows you to show and hide columns.

If you don't have that, you'd have to make the NOPRINT an amper variable in the program and rerun it to get the column to show up.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Hello Ginny, Our site does have a license for Active Reports..... and I am able to hide and unhide columns. However I cannot unhide the columns that were initially NOPRINT items.


Version of Webfocus = 766
Platform = Windows
wish to use all possible output formats.
 
Posts: 11 | Registered: November 19, 2009Report This Post
Expert
posted Hide Post
Scott,

Are you new to WebFOCUS? Question asked based on # of posts.. Smiler

Here is an example to Hide/Unhide a column. It is a very simple example, but, gives you a concept to begin with:

  
-SET &ECHO=ALL;
-DEFAULT &HIDE = 'Y'
-SET &X_HIDE = IF &HIDE EQ 'Y' THEN 'N' ELSE 'Y';
DEFINE FILE GGSALES
 SYEAR/YY=DATE;
 DUMMY/A10 = ' ';
 XDOLLARS/P9C = DOLLARS;
END
TABLE FILE GGSALES
SUM
-IF &HIDE EQ 'Y' GOTO DO_DUMMY;
     UNITS  AS 'Click to hide,  Units'
-GOTO DO_VAR
-DO_DUMMY
     DUMMY AS 'Click to Un-Hide'
-DO_VAR
     XDOLLARS AS 'Amount'
BY STCD
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=TITLE,
COLUMN=N2,
FOCEXEC=Hide_UnHide.fex (HIDE = '&X_HIDE.EVAL'), $

TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
     COLOR='BLACK',
     STYLE=NORMAL,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=ACROSSVALUE,
     ACROSS=1,
     STYLE=BOLD,
$
TYPE=ACROSSTITLE,
     ACROSS=1,
     STYLE=BOLD,
$
ENDSTYLE
END


hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
Hello Tom....

Yes, I am pretty new at programming in Webfocus.. about a year... I kinda got hooked into this question because one of our users saw a list of columns hidden in a report that I supply.... I never intended for them to show up as hidden, I just used them to help with selection. He is now challenging me to let him see the columns.... I am thinking of revoking his computer privileges.


Version of Webfocus = 766
Platform = Windows
wish to use all possible output formats.
 
Posts: 11 | Registered: November 19, 2009Report 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] STYLESHEET DELETE

Copyright © 1996-2020 Information Builders