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] Drilldowns based on dynamic sort

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Drilldowns based on dynamic sort
 Login/Join
 
Gold member
posted
I have 4 dropdowns on the html page and user could select one or all of them. These values (fields) would be used in the fex to display in the selected sort order.
For example:
if I have four dropdowns for fields
car, model, country, dealer cost.
When a user selects first dropdown value as car and selects nothing in the rest of the dropdowns, report would be sorted and aggregate the numbers based on car field.
But, in the drilldown to see the detail behind the aggregated number, user would like to see drilldowns (as drillmenu items) on the rest of the fields that were not selected from the html page dropdown.
I can hardcode saying if &by1 is car, then have drillmenu items for country, model and dealer cost. if &by1 is model, then have drill menu items for car,country and dealer cost.
But, I think this is tedious and I would like to know if there is a easy way to do this instead of harding coding all the values like this.
Besides, user could be selecting one or multiple sorts.
Any ideas please?

Thank you.

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


7.7.01,windows2008 R2
 
Posts: 65 | Registered: July 28, 2011Report This Post
Platinum Member
posted Hide Post
Yes, the coding is a bit tedious, but I used DRILLMENUITEM coupled with a WHEN condition to accomplish this sort of thing. Here is an example:

 
-**********************************************************************************
-*	Drill menu items available to Received Records
-**********************************************************************************
TYPE=DATA,
     COLUMN=ACTION,
	WHEN=SURV_RESP_RVW_STAT_CD EQ 'R',
     DRILLMENUITEM='Approved',
        FOCEXEC=app/surmod03( \
		RESPONDER =RESP_ID \
	    PROVIDER=PROV_ID \
		LST_CHG=RESPDR5 \
	    ACTION='Approved' \
	    ),
		TARGET=&Target.EVAL,
     DRILLMENUITEM='Pending',
        FOCEXEC=app/surmod03( \
		RESPONDER=RESP_ID \
     	PROVIDER=PROV_ID \
		LST_CHG=RESPDR5 \
     	ACTION='Pending' \
     	),
		TARGET=&Target.EVAL,
     DRILLMENUITEM='Declined',
        FOCEXEC=app/surmod03( \
	 	RESPONDER =RESP_ID \
     	PROVIDER=PROV_ID \
		LST_CHG=RESPDR5 \
    	ACTION='Declined' \
     	),
	 	TARGET=&Target.EVAL,
	DRILLMENUITEM='Flag For QI',
		FOCEXEC=app/surmod04( \
		Resp_TS = RESP_TS \
		Resp_ID = RESP_ID \
		Surv_ID = SURV_ID \
		Qstn_ID = QSTN_ID \
		Answ_ID = ANSW_ID \
		), TARGET='_blank',
$
 


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005Report This Post
Expert
posted Hide Post
aha. i do this all day long....
i have a parm called BYFIELD
and i set it to whatever the user selects as the first BY.
then i create comment markers in my fex.
-SET &cmt_car=IF &BYFIELD IS 'CAR' THEN '-*' ELSE '';
-SET &cmt_model=IF &BYFIELD IS 'MODEL' THEN '-*'
ELSE '';
-SET .. you get it.

then in my drilldown
&cmt_car.EVAL DRILLMENUITEM='sort by car',focexec=&dd0(BYFIELD = 'CAR' , ....),
&cmt_model.EVAL DRILLMENUITEM='sort by model',focexec=&dd0(BYFIELD = 'MODEL' , ....),
&cmt_country.EVAL ... you get it.

user only sees what they haven't sorted by.
you can expand on this idea of using &cmt_ variables to comment out lines you don't need in a ton of ways.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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] Drilldowns based on dynamic sort

Copyright © 1996-2020 Information Builders