Focal Point
[SOLVED] STYLESHEET DELETE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/734104661

June 29, 2009, 02:31 PM
Mark1
[SOLVED] STYLESHEET DELETE
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
June 29, 2009, 02:33 PM
GinnyJakes
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
June 30, 2009, 04:03 AM
Danny-SRL
Or use NOPRINT in the report.


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

June 30, 2009, 09:22 AM
jgelona
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.
June 30, 2009, 09:55 AM
BlueZone
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
July 07, 2009, 01:11 PM
Mark1
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
July 07, 2009, 01:17 PM
Francis Mariani
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
January 21, 2010, 02:50 PM
Scott Noeth
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.
January 21, 2010, 04:07 PM
GinnyJakes
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
January 22, 2010, 11:14 AM
Scott Noeth
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.
January 22, 2010, 11:41 AM
Tom Flynn
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
January 22, 2010, 01:58 PM
Scott Noeth
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.