Focal Point
Drill Down Only If....

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

August 22, 2006, 06:32 PM
jmcgeorge
Drill Down Only If....
In WebFOCUS 5.2.6, is it possible to create a drill down only if the field is equal to a particular value? For example, if x = 'Me' open me.fex else don't do anything (not even a link)

And, is it possible to create a drill down that opens a different fex based on the value? For example, if x = 'Me' open me.fex else if x = 'You' open you.fex.

New to this....thanks in advance.

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


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
August 22, 2006, 09:47 PM
susannah
absolutely mcgeorge!
use WHEN= syntax
TYPE=DATA,COLUMN=THING,WHEN=SOMETHING EQ 'ME',
FOCEXEC=SOMEFEX(some parms),$
I do it all day long like that.

The feature i want is WHEN= on each individual DRILLMENUITEM...that would be heaven.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 23, 2006, 10:37 AM
jmcgeorge
Thanks, Susannah. I am using Dev Studio and I put the following:

TYPE=DATA,
COLUMN=N14,
SIZE=9,
WHEN= UNIT_MAIN.UNIT_STATUS EQ 'FLAGGED',
FOCEXEC=UNITDIS(UNIT_NO=N4),
$

Dev Studio changes it to the following:

TYPE=DATA,
COLUMN=N14,
SIZE=9,
WHEN= EQ 'FLAGGED',
FOCEXEC=UNITDIS(UNIT_NO=N4),
$

But, I don't get any links for that value. Any ideas where I went wrong?
Thanks again!


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
August 23, 2006, 02:56 PM
susannah
sorry, McG, i'm a hand coder...
DevStu seems to have dropped your value...
zut alors!
Would you update your profile signature with your version and platform? that will help devstu gurus respond to you.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 23, 2006, 03:56 PM
jmcgeorge
Anyone have any ideas on how to do this via the GUI?
Thanks!!


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
August 23, 2006, 04:27 PM
Francis Mariani
quote:
WHEN= UNIT_MAIN.UNIT_STATUS EQ 'FLAGGED',



Perhaps DevStudio balks at the qualified field name.

Try the WHEN clause without the qualified name:

WHEN= UNIT_STATUS EQ 'FLAGGED',


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 25, 2006, 01:30 PM
jmcgeorge
Thanks, Francis. I tried it, but Dev Studio still changes it to the following:

TYPE=DATA,
COLUMN=N14,
SIZE=9,
WHEN= EQ 'FLAGGED',
FOCEXEC=UNITDIS(UNIT_NO=N4),
$


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
August 25, 2006, 11:09 PM
susannah
just a thought...
are you sure you are pulling the field
UNIT_STATUS into the report
even perhaps with a NOPRINT
and you're not just referencing a field in the same record in the source file, but not actually bringing it in to the report?
Can you try with the CAR file, the file we all use to test things and communicate with each other.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID