Thursday, November 22, 2012

IBM COGNOS Report Studio query based report with optional prompt syntax



Many a times, we can’t wait till the metadata is created for every element that is there on the application, especially if your company is an extreme programming one. (Like the one I am working with.) So we end up writing query based reports in the COGNOS report studio.

The most common format that we find on the internet is:
               SALES_REP  in (#promptmany ('Rep_Prompt')#)

Where,
SALES_REP ----- Metadata element
Rep_Prompt   ------ name of the filter

As you know, using this kind of prompt results in a required prompt on the prompt page; but it is not always that we want the end-user to use these filters. What if we need to build a query based report in the report studio with an optional prompt from the query ……… :)

 Here is the format;

                SALES_REP in (#promptmany ('Rep_Prompt',' ','SALES_REP')#) 

I have built reports on COGNOS report studio based on this syntax and they works fantastically.

Where did I find this syntax ------ IBM COGNOS website.




5 comments:

Sachin More said...

Very useful info Sandeep.
Thanks.

Sachin More said...

Very useful info Sandeep.
Thanks.

Sachin More said...

Very useful info Sandeep.
Thanks.

Unknown said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Ibm Cognos, kindly contact us http://www.maxmunus.com/contact
MaxMunus Offer World Class Virtual Instructor led training on Ibm Cognos. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.

For Free Demo Contact us:
Name : Arunkumar U
Email : arun@maxmunus.com
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –http://www.maxmunus.com

Sandeep SEO said...

I would like to appreciate your work for good accuracy and got informative knowledge from here...................................Please Contact us we are giving best training on Oracle Fusion Procurement Course