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] Hiding across columns conditionally.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Hiding across columns conditionally.
 Login/Join
 
Member
posted
Here is my issue. I have two fields of data that I want to display for one across, but only one each for my other two sets of data.

TABLE FILE SQLOUT
SUM
TRVL_MIN/I8 AS 'TRVL'
ONSITE_MIN/I8 AS 'ONSITE'
BY RGN
BY GM
BY APS
BY TECH
BY POST_DY AS 'DATE'
ACROSS CODE AS ''
ACROSS DESCRIPTION AS ''
ON RGN SUBTOTAL
ON GM SUBTOTAL
ON APS SUBTOTAL
ON TECH SUBTOTAL AS ''

So I want to display trvl and onsite for my assigned time, but only trvl for another and only onsite for yet another. Any ideas?

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


ver: 7610
geb: 093002009
 
Posts: 2 | Registered: March 29, 2012Report This Post
Guru
posted Hide Post
one way of doing this is by using the -SET command. eg

-SET &ACR1=IF my assigned time THEN 'ACROSS CODE' ELSE IF other cond1 THEN 'ACROSS CODE' ELSE '';
-SET &ACR2=IF my assigned time THEN 'ACROSS CODE' ELSE IF other cond2 THEN 'ACROSS CODE' ELSE '';

TABLE FILE SQLOUT
SUM
TRVL_MIN/I8 AS 'TRVL'
ONSITE_MIN/I8 AS 'ONSITE'
BY RGN
BY GM
BY APS
BY TECH
BY POST_DY AS 'DATE'
&ACR1
&ACR2
ON RGN SUBTOTAL
ON GM SUBTOTAL
ON APS SUBTOTAL
ON TECH SUBTOTAL AS ''


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Virtuoso
posted Hide Post
Something like this might work. You may need to add .EVAL to the variables (i.e., &FLG1.EVAL) in the TABLE request.

-SET &FLG1 = IF (display_condition1) OR (display_condition2) THEN ' ' ELSE '-*';
-SET &FLG2 = IF (display_condition1) OR (display_condition2) THEN ' ' ELSE '-*';
-*
TABLE FILE SQLOUT
SUM
&FLG1 TRVL_MIN/I8 AS 'TRVL'
&FLG2 ONSITE_MIN/I8 AS 'ONSITE'
BY RGN
BY GM
BY APS
BY TECH
BY POST_DY AS 'DATE'
ACROSS CODE AS ''
ACROSS DESCRIPTION AS ''
ON RGN SUBTOTAL
ON GM SUBTOTAL
ON APS SUBTOTAL
ON TECH SUBTOTAL AS ''


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Neither of those seemed to work, thanks for the input. Is there just a way to hide my columns with all zeros in it? I tried HIDENULLACRS, but I think my subtotals are interferring.


ver: 7610
geb: 093002009
 
Posts: 2 | Registered: March 29, 2012Report This Post
Gold member
posted Hide Post
I may be wrong but what you are wanting to to basically get rid of any across columns that your TRVL or ONSITE fields have only zeros in it?

The title of your request and first post at least for me was kind of confusing and sounded like you wanted the field that you have ACROSS to change.

If your problem is something similar to what happens in this example:
TABLE FILE CAR
SUM WEIGHT
BY COUNTRY
ACROSS MODEL
END


Then you can just do a WHERE statement on your SUM fields where they are NE 0. Example:

TABLE FILE CAR
SUM WEIGHT
BY COUNTRY
ACROSS MODEL
WHERE WEIGHT NE 0;
END


This way can cause problems with counts and averages and if I am still wrong sorry.


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report 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] Hiding across columns conditionally.

Copyright © 1996-2020 Information Builders