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] Can We Use Style Sheet to Hide a Column?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Can We Use Style Sheet to Hide a Column?
 Login/Join
 
Member
posted
I have a query that I cannot specify what fields(variable) I need to retrieve. For some of the fields that are fixed, can we use style sheet to hide it?

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


Web Focus Developer Studio 7.6
SAP, all output
 
Posts: 8 | Registered: August 26, 2010Report This Post
Virtuoso
posted Hide Post
There is a HIDE StyleSheet option, but I think it may only work for PDF (I've never used it). The NOPRINT command is another way to prevent columns from displaying.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
Looks like HIDE can only be used with Active reports.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Waz, thanks for the correction.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
I was only following my on suggestions.

RTFM


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
If it's an HTML report, then you can reference an external stylesheet:
ON TABLE SET HTMLCSS OFF
ON TABLE SET CSSURL '/approot/project/stylesheet.css'


In that stylesheet you can add a CSS class definition that says:
.hidden { display: none; }

In your report style sheet you can assign that class to a column like so:
TYPE=TITLE, COLUMN=Nx, CLASS=hidden,$
TYPE=DATA, COLUMN=Nx, CLASS=hidden,$
...etc.


You need to do this for every type of output in your stylesheet (titles, data, grand-totals if you have any, etc) that the column you want to hide crosses. It's probably going to look quite ugly in some browsers as well, table cells aren't meant to be hidden.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Member
posted Hide Post
Dear Dan, Waz and Wep5622,

Thank you for the info. I learned a lot from your tips.

I need to create an Excel2K summary report that have row and column average. I cannot specify the fields like I normally do. I can only print * since majority of fields are variables. I now can white-out those fields I want to hide, but they still take up some space and make the report look kind of funny. That is why I am searching for style sheet solution. My code is as followed:

DEFINE FILE SLS9
Payerinfo/A120 = PAYER|'-'|PayerName;
END
-*
TABLE FILE SLS9
PRINT * Payerinfo
ON TABLE HOLD AS SLS10 FORMAT FOCUS
END
-*
JOIN CLEAR *
JOIN FILE SLS10 AT CLRYR TO MULTIPLE FILE VZT009B AT ZYEAR AS J7
WHERE SLS10.AUGDT GE VZT009B.FPDAY AND SLS10.AUGDT LE VZT009B.LPDAY;
END
-*
TABLE FILE SLS10
PRINT *
ON TABLE HOLD AS SLS11 FORMAT ALPHA
END
-*
DEFINE FILE SLS11
SUMPERIOD/A6 = IF '&MOTYPE' EQ 'C' THEN EDIT(AUGDT, '999999$$') ELSE PERIOD;
END
-*
-*
TABLE FILE SLS11
SUM CNT.SUMPERIOD NOPRINT
BY PAYER
BY SUMPERIOD
ON TABLE HOLD AS SLS12
END
-*
DEFINE FILE SLS12
PYRCNT/P13 = 1;
END
-*
TABLE FILE SLS12
SUM PYRCNT
BY PAYER
ON TABLE HOLD AS SLS13
END
-*
JOIN CLEAR *
JOIN LEFT_OUTER PAYER IN SLS11 TO PAYER IN SLS13
END
-*
DEFINE FILE SLS11
PYRCNTR/P13 = 1;
SUMPERIOD/A6 = IF '&MOTYPE' EQ 'C' THEN EDIT(AUGDT, '999999$$') ELSE PERIOD;
END
-*
TABLE FILE SLS11
PRINT * SUMPERIOD PYRCNTR
BY PERIOD
ON TABLE HOLD AS SLS14
END
-*
TABLE FILE SLS14
SUM PYRCNTR Payerinfo AS PAYER CLRDTERMDAYS AS CLRDAYS
COMPUTE CUSTAVG/P13.1 = CLRDTERMDAYS / PYRCNTR;
BY Payerinfo
BY PYRCNT
BY PERIOD
ON TABLE HOLD AS SLS15
END
-*
TABLE FILE SLS15
PRINT PYRCNT AS 'Y'
BY Payerinfo AS 'X'
ON TABLE HOLD AS SLS16
END
-*
TABLE FILE SLS15
SUM AVE.CUSTAVG AS ''
BY Payerinfo
ACROSS PERIOD AS ''
ON TABLE HOLD AS SLS17
END
-*
TABLE FILE SLS17
PRINT * ROW-TOTAL/P13.1 AS 'T'
BY Payerinfo NOPRINT
ON TABLE HOLD AS SLS18
END
-*
JOIN CLEAR *
JOIN LEFT_OUTER Payerinfo IN SLS18 TO X IN SLS16
END
-*
TABLE FILE SLS18
PRINT *
COMPUTE Customer_Avg/P13.1 = T / Y;
ON TABLE HOLD AS SLS19
END
-*
TABLE FILE SLS19
PRINT *
BY Payerinfo NOPRINT
-*
HEADING CENTER
"Medline Industries, Inc."
"Average Days to Clear For SOLD-TOs in &VRSNHDR &ACCT Summary"
"For &CALHDR Period: &STRHDATE through &ENDHDATE"
"<0> NOTE1: If an invoice is partially paid (regardless of the amount) then the entire invoice is 'cleared' in full and a residual invoice is created. This report does not include residual invoices."
"<0> NOTE2: Credits/Credit Memo transactions are also excluded."
"<0> Run Date: &RUNDATE &TOD"
"<0> Report: ar9100.fex"
"<0> Last Updated: &LastUpdate"
FOOTING
"*** End of Report ***"
-*
ON TABLE RECOMPUTE AVE. AS 'Monthly_Avg'
ON TABLE PCHOLD AS SUMRPT FORMAT EXL2K OPEN
-*
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIEL NARROW', SIZE=8, COLOR=BLACK, BACKCOLOR=NONE, STYLE=NORMAL, WRAP=OFF, $
TYPE=REPORT, TITLETEXT='SUMMARY', $
TYPE=HEADING, FONT='TAHOMA', SIZE=10, STYLE=BOLD, COLOR=BLACK, BACKCOLOR=WHITE, $
TYPE=HEADING, FONT='TAHOMA', SIZE=10, STYLE=BOLD, COLOR=BLACK, BACKCOLOR=WHITE, $
TYPE=HEADING, LINE=6, FONT='TAHOMA', SIZE=8, STYLE=-BOLD, BACKCOLOR=WHITE, $
TYPE=HEADING, LINE=7, FONT='TAHOMA', SIZE=8, STYLE=-BOLD, BACKCOLOR=WHITE, $
TYPE=HEADING, LINE=8, FONT='TAHOMA', SIZE=8, STYLE=-BOLD, BACKCOLOR=WHITE, $
TYPE=TITLE, SIZE=9, STYLE=BOLD, BACKCOLOR=RGB(141 180 227), WRAP=ON, $
TYPE=TITLE, COLUMN=T, COLOR=RGB(141 180 227),SIZE=1, STYLE=BOLD, BACKCOLOR=RGB(141 180 227), WRAP=ON,$
TYPE=DATA, COLUMN=T, SIZE=1, COLOR=WHITE, STYLE=BOLD, WRAP=ON, $
TYPE=TITLE, COLUMN=X, COLOR=RGB(141 180 227),SIZE=1, STYLE=BOLD, BACKCOLOR=RGB(141 180 227), WRAP=ON, $
TYPE=DATA, COLUMN=X, SIZE=1, COLOR=WHITE, STYLE=BOLD, WRAP=ON, $
TYPE=TITLE, COLUMN=Y, COLOR=RGB(141 180 227),SIZE=1, STYLE=BOLD, BACKCOLOR=RGB(141 180 227), WRAP=ON, $
TYPE=DATA, COLUMN=Y, SIZE=1, COLOR=WHITE, STYLE=BOLD, WRAP=ON, $
TYPE=DATA, COLUMN=Customer_Avg, SIZE=8, COLOR=BLACK, STYLE=BOLD, WRAP=ON, $
TYPE=GRANDTOTAL, SIZE=8, STYLE=BOLD, BACKCOLOR=RGB(141 180 227), $
TYPE=GRANDTOTAL, COLUMN=T, SIZE=8, COLOR=RGB(141 180 227),STYLE=BOLD, BACKCOLOR=RGB(141 180 227), $
TYPE=GRANDTOTAL, COLUMN=Y, SIZE=8, COLOR=RGB(141 180 227),STYLE=BOLD, BACKCOLOR=RGB(141 180 227), $
TYPE=FOOTING, FONT='TAHOMA', SIZE=8, STYLE=BOLD, COLOR=BLACK, $
ENDSTYLE
END


Web Focus Developer Studio 7.6
SAP, all output
 
Posts: 8 | Registered: August 26, 2010Report This Post
Virtuoso
posted Hide Post
You don't have to use PRINT *

Once you've accumulated all the possible columns (in SLS19), produce an includable ordered list (via CHECK and TABLE), limited to the desired ones, and reference that field-list, via -INCLUDE, in place of "*"

CHECK FILE SLS19 HOLD AS SLS19F
TABLEF FILE SLS19F
PRINT FIELDNAME
WHERE ... ;
ON TABLE SAVE AS SLS19I
END
-RUN <- important

and then

TABLE FILE SLS19
PRINT
-INCLUDE SLS19I
...

The WHERE clause is up to you to build, based on the run-time parameters. Take it from there.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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] Can We Use Style Sheet to Hide a Column?

Copyright © 1996-2020 Information Builders