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')#) 

Comments

Popular posts from this blog

Query Cognos 8/10 Content Store

Cognos 8/10 CAMID-User ID/LDAP ID report

Cognos Cross-tab Report Studio Report Ungroup Items to display as list on every line