Prompts in Cognos Framework Manager
I use prompts in FWM time to time when the data is huge and I want to filter it right from table and also in manual SQL. Every time I use it I search for the syntax so i thought would share it here:
Macro- #prompt(‘pmtName’,’ datatype’)#
Parameter Map- #$parametermap{prompt(‘ pmtName’,’datatype’)}#
Session Parameter- #$parametermap{$ Sessionparameter}#
Date Prompt- to_date(#prompt('Start/END Date', 'varchar')#,'yyyy-mm-dd')
If you have multiple values to pass on to these prompts use 'in' as part of where clause.
where Data_Item = (#prompt('Param_Name', 'varchar')#)
Macro- #prompt(‘pmtName’,’
Parameter Map- #$parametermap{prompt(‘
Session Parameter- #$parametermap{$
Date Prompt- to_date(#prompt('Start/END Date', 'varchar')#,'yyyy-mm-dd')
If you have multiple values to pass on to these prompts use 'in' as part of where clause.
where Data_Item = (#prompt('Param_Name', 'varchar')#)
Comments
Post a Comment