I need to embed a native oracle sql statement inside COGNOS framework manager. This link describes how to do it.
e.g:
select cust_name from cust where cust_id = '111'
Now is there a way to embed an SQL inside COGNOS FM that also accepts a parameter.
e/g:
select cust_name from cust where cust_id = ?
You can use the prompt macro as described here:
Creating prompts with query macros
Your expression should look something like this:
Ofcourse you can expand it by providing default value, or use the promptmany macro so supply list of values (and not just one value).
You can really do nice things with macros in Cognos, but you have to know exactly what you are doing.