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.
------------------------------------------------------------------------------------------------- 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 !!
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.
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..
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
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.