Focal Point
[CLOSED] Multi-Selects and Drilldowns

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

January 15, 2018, 11:15 PM
Doug
[CLOSED] Multi-Selects and Drilldowns
Not resolved, just closed, See me next post, below, for more information

I have a multi-select drop down list which comes in to a variable, &STUFF, as
'item1' OR 'item2'
, which I use as a filter (WHERE FILELDNAME EQ &STUFF) This equates to
WHERE &STUFF EQ 'item1' OR 'item2'
. This works fine.

The issue is passing this via a drilldown (Simplified: TYPE=DATA, COLUMN=RPT_STUFF, TARGET=BLANK, FOCEXEC=IBFS:/WFC/Repository/Folder1/MyFex.fex( STUFF=&STUFF ); Then what to do when it comes in as FOC_NONE, without the quotes? Yeah I'm stumped.

I hope that explains it well enough...

Thanks In Advance, Doug

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
January 16, 2018, 02:35 AM
Chaudhary
quote:
he issue is passing this via a drilldown (Simplified: TYPE=DATA, COLUMN=RPT_STUFF, TARGET=BLANK, FOCEXEC=IBFS:/WFC/Repository/Folder1/MyFex.fex( STUFF=&STUFF );


Hi Doug Try QUOTEDSTRING with the Variable.

 &STUFF.QUOTEDSTRING
FOCEXEC=IBFS:/WFC/Repository/Folder1/MyFex.fex( STUFF=&STUFF.QUOTEDSTRING )
 



WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
January 16, 2018, 11:44 AM
Doug
Thanks for your suggestion Chaudhary,
Hoever the use of QUOTEDSTRING is fine when the data comes in quoted, but FOC_NONE, the default, isn't quoited. Thus it kicks out and unknown field error.

I'm reverting back to the basic. So this post is obsolete, I'll close it
January 16, 2018, 02:26 PM
MartinY
Doug,

When using &VAR.QUOTEDSTRING, instead of using FOC_NONE as default non-selected value, try to use _FOC_NULL.


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
January 16, 2018, 06:15 PM
Doug
Thanks Martin.

This set of procedures was built "on the fly" / based on a POC. So, I scarped the whole the whole things and rebuilt it mostly in the GUI, I needed to *** some DM to display 'user friendly' text for the heading.