Focal Point
[CLOSED] Mandatory filter in master file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/331101473

February 18, 2010, 11:43 AM
AMARNATH_EL
[CLOSED] Mandatory filter in master file
Hi,

I have a requirement where i need to force the user to filter by a particular column when ever he is using the master file.

Example:

billing_date,
merchant,
quantity,
volume

If the user is using the above master file, i want the user to filter always by billing_date.

I dont want to create a reporting object and give to the user.

I want to give a master file to the user and make sure he uses it properly.

Any suggestions on this is really appreciated.

Thanks,
Amarnath

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


WebFOCUS 7.6.7
Unix
Excel/Html
February 18, 2010, 11:55 AM
GinnyJakes
http://documentation.informati...ng/sel13.htm#1010837

I don't know if this will work for you because I'm not sure that it will take an amper variable. But take a look at it and see if it can help you out.

You could put it in a global profile.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
February 18, 2010, 12:00 PM
GinnyJakes
Amarnath,

I'm stunned but this actually worked! It prompted me for a country.
FILTER FILE CAR
NAME=CAR1
WHERE COUNTRY EQ '&COUNTRY'
END
SET FILTER= CAR1 IN CAR ON
TABLE FILE CAR
SUM SALES
BY COUNTRY
END
You could put the whole first part of this in edasprof.prf.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
February 18, 2010, 12:13 PM
Dan Satchell
Ginny, very cool! I've never seen FILTER FILE used before. Good One


WebFOCUS 7.7.05
February 18, 2010, 12:26 PM
GinnyJakes
Dan, I always read the Summaries of New Features when they come out and even though I don't use the all of the facilities, I guess my memory is good enough even at my advanced age to remember at least a topic if not the details. I highly recommend that as a Best Practice for anyone who does WF a lot.

Just remember, even if you don't need it now, you might need it later. Big Grin


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
February 18, 2010, 01:57 PM
AMARNATH_EL
Hi Ginny,

Thanks for your help on this.

I coded as below and included in the edasprof.prf. But it is throwing an error.

FILTER FILE BILLING_BV01
NAME=CLGFILTER
WHERE CLG_NUM EQ '&CLG'
END
SET FILTER= CLGFILTER IN BILLING_BV01 ON
TABLE FILE BILLING_BV01
END

Can you please check if it is right?

Thanks,
Amarnath


WebFOCUS 7.6.7
Unix
Excel/Html
February 18, 2010, 02:04 PM
GinnyJakes
Don't put the TABLE request in the profile, only the filter and the set filter.

To be clear, I have never used this facility. I just created a quick test to see if an amper variable would work. I didn't try putting it in a profile.

If you make changes and it still doesn't work then I'd recommend that you open a case with IBI. I may, in fact, be steering you down the wrong path. But, it would be great if it worked, wouldn't it?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
February 18, 2010, 02:31 PM
AMARNATH_EL
Yes Ginny, it would be nice if it worked.

I will check with IBI and see!!

Anyway thanks Ginny


WebFOCUS 7.6.7
Unix
Excel/Html
February 19, 2010, 05:50 AM
Alan B
FILTER will work, but not in EDASPROF if you want &variable prompting. Using in _site_profile with an &variable will cause Parameter Prompting to invoke.


Alan.
WF 7.705/8.007