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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Passing a parameter driven filter to multiple fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Passing a parameter driven filter to multiple fields
 Login/Join
 
Platinum Member
posted
I have a table that has four separate fields that a students major may be stored in, Major1, Major2, Major3 and Major4. I have created a report that uses a dynamic parameter filter for Major1, I want to set the other three parameter filters to the values that are selected in the Major1 dynamic parameter filter. Can this be done?

This message has been edited. Last edited by: <Kathryn Henning>,


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Platinum Member
posted Hide Post
For that, You have to do the WF HTML Chaining Control.
May be this will resolve your problem.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Silver Member
posted Hide Post
Hi Trudy,

Am not sure I understand your question.

If the Major can be stored in any one of 4 data fields then the value(s) selected in field1 may not be a valid value for fields 2, 3 & 4..? And even if they are the filters are now allowing the user to select where the master value is in both field1 AND field2 AND field3 AND field4 - which doesn't sound like what you're after. I would suspect you're after finding students who have the Master in any of the fields - in which case my instinct is to create a file with a column containing all possible Master values from all 4 of your data fields and use this as the filter and in the fex to select where field1 OR field2 OR field3 OR field4 eq param value.

Please accept my apologies if I have misunderstood.


7.7.05 Windows.
 
Posts: 39 | Location: UK | Registered: July 11, 2012Report This Post
Platinum Member
posted Hide Post
Darryl I am definitely using an OR between the fields. My question is how to use pass the selected parameter variable from field1 to the remaing three other fields.

Avinash, is there no other way to do this other than through HTML Chaining?

Thanks T


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Virtuoso
posted Hide Post
You can do js to extract selected value from Major1 (IBI has pre-build function to do that, assuming that you are using HTML Composer) and then assign this value to other Major2, 3, 4.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
Wouldn't this work?

WHERE Major1 EQ '&MYMAJOR' OR Major2 EQ '&MYMAJOR' OR Major3 EQ '&MYMAJOR' OR Major4 EQ '&MYMAJOR';

Simply add the first parameter to each of the fields - you can overwrite the chosen one in Filter tool in InfoAssist and/or App Studio.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
My worry (not knowing the data or the requirement!) is still that if this parameter is being driven by values of MAJOR1 that this could miss some major values that only exist in the data in MAJOR2, 3 or 4. I don't know if this is possible or an issue - only you can say if using MAJOR1 as the definitive list of possible values is a problem or not.


7.7.05 Windows.
 
Posts: 39 | Location: UK | Registered: July 11, 2012Report 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] Passing a parameter driven filter to multiple fields

Copyright © 1996-2020 Information Builders