If you need, for any reasons, your country list enclosed between quotes, I suggest to add them in your drill-down fex which is receiving the value in an amper variable.
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
November 06, 2014, 10:16 AM
j.gross
quote:
-SET &CTRY_LIST = &CTRY_LIST.QUOTEDSTRING;
Actually, that does nothing. The .QUOTEDSTRING implies .EVAL, and the assignment strips off the enclosing quotes, so net-net you're left with the original value.
CURRENTLY DEFINED & VARIABLES STARTING WITH 'z':
&z1 = O'Realy & O'Reily
&z2 = O'Realy & O'Reily
&z3 = 'O'Realy & O'Reily'
- Jack Gross WF through 8.1.05
November 06, 2014, 02:16 PM
Rejoice
Thank you! It's now working. I made a change in the target procedure.
-*FEX : xxxx.fex -* This procedure is used by other reporting applications -* -* CTRY_LIST can have multiple alphanumeric values (comma delimited and enclosed in quotes) -*
-DEFAULT &CTRY_LIST ='FOC_NONE';
-SET &CTRY_LIST_X = IF &SOURCE_CODE = 'Fex1' THEN '''' || &CTRY_LIST || '''' ELSE &CTRY_LIST;
ENGINE SQLPSTGR SET DEFAULT_CONNECTION ServiceMetrics SQL SQLPSTGR PREPARE COUNTRY_TXNS FOR select distinct c.country, sum(transaction_cnt) as country_cnt from country_rollup sdc join geo.countries c on sdc.country_code = c.iso2 where 1 =1 and c.country in (&CTRY_LIST_X) group by country ) foo