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     Drill-down on ROW-TOTAL title

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Drill-down on ROW-TOTAL title
 Login/Join
 
Gold member
posted
I'm trying to pinpoint the title of a ROW-TOTAL column in my stylesheet, so that I can create a link for a drill-down. I know how I can pinpoint a particular column, but I'm using an ACROSS, so the column number of the ROW-TOTAL column varies depending on my data. I attempted to get a count of distinct ACROSS values and then set that equal to an ampervariable which I could then use in the stylesheet definition to pinpoint the ROW-TOTAL column, but I couldn't get that working, either. Any suggestions would be much appreciated! Thanks!
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
Are you using an Across to get your row-total??
If so,
Using your idea of identifying the column number:
this works, you can put your fex dd in the style sheet entry.
TABLE FILE CAR
SUM SALES ACROSS COUNTRY AND ROW-TOTAL
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, COLOR=RED, COLUMN=N6,$
END
-- if not, then this works
TYPE=TITLE,COLUMN=ROWTOTAL,COLOR=RED,$
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Thanks for the advice susannah! You probably can already tell that I haven't worked too much with WebFOCUS. The row-total column is the sum of my across columns, so I would need to specify the particular column number. I think I would want to do something like

TYPE=ACROSSTITLE , COLOR=RED, COLUMN=N|$COL_ID,$

but I'm not sure how to calculate the correct column number on the fly, so to speak. I tried using the DST. prefix operator to count the unique values of my across, but I couldn't get it to work. It's too bad you can't use prefix operators in a DEFINE (I know that probably sounds ridiculous to suggest). Anyway, do you or anybody else have a suggestion about how I can dynamically calculate the column ID for my row-total column. Can you use ampervariables in a stylesheet definition?
 
Posts: 50 | Registered: March 26, 2004Report This Post
Gold member
posted Hide Post
I'm sorry. I was wrong to point out the ACROSSTITLE vs. ACROSSVALUE thing. I do want to use ACROSSVALUE.
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
I take a safer approach with my column references and just create athe whole &var as
the reference.
-SET &MYCOL = 'N' | &KOUNTER ;
and then just use the whole &MYCOL in my ss.
COLUMN= &MYCOL , etc

I also take a q+d approach to finding out how many cols i need.
TABLE FILE CAR BY MODEL ON TABLE HOLD
END
-RUN
-SET &KOUNTER = &LINES ;
{ &LINES is a system var }
-SET &MYCOL = 'N' | &KOUNTER ;
remember it might not be N that you want to use,
might be C or P, check the manual to figure that out for your particular fex.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Thanks for the follow up susannah. I'll give your suggestion a shot. I'm assuming this works because the &LINES system variable must count my ACROSS values as rows even though they are displayed as columns.
 
Posts: 50 | Registered: March 26, 2004Report 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     Drill-down on ROW-TOTAL title

Copyright © 1996-2020 Information Builders