COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: thgeorge on 16 Aug 2005 11:47:27 AM

Title: [Solved] Carry Prompt Values from one report to another
Post by: thgeorge on 16 Aug 2005 11:47:27 AM
Is there a way to save the prompted values on one report and use them while drilling through from this report to another report.

Thanks in advance
Title: Re: Carry Prompt Values from one report to another
Post by: Darek on 16 Aug 2005 12:30:54 PM
You need to have the prompt values as query items in the query (not necessarily in the face of the report, but in the query).  THe second report (the drill through) has to have prompts set up to accept these.
Title: Re: Carry Prompt Values from one report to another
Post by: thgeorge on 16 Aug 2005 12:46:31 PM
Thanks a million for the reply,
Actually the problem is that i am using a SQL Query as a Tabular SQL and i cannot omit out the start and end dates, as i have some aggregations in the SQL. So isnt there any other way to save the start and end dates picked the first time and use it in the second report that was drill through.

Thanks in Advance

Quote from: Darek on 16 Aug 2005 12:30:54 PM
You need to have the prompt values as query items in the query (not necessarily in the face of the report, but in the query).Ã,  THe second report (the drill through) has to have prompts set up to accept these.
Title: Re: Carry Prompt Values from one report to another
Post by: Darek on 16 Aug 2005 01:14:29 PM
You don't have to omit anything. Just add the parameters as Data Items to your query. Than you'll be able to reuse.
Title: Re: Carry Prompt Values from one report to another
Post by: thgeorge on 16 Aug 2005 01:35:24 PM
What i meant was that because its a tabular SQL that i am using, i can add the date, but that will change my windowing logic in the sql, so i am forced not to add the date in the SQL. Hence dosent show up in the DataItems. Moreover reportnet does not allow you to add new dataItems when you use tabular Sql.
Title: Re: Carry Prompt Values from one report to another
Post by: Darek on 16 Aug 2005 01:52:08 PM
Than supersede the Tabular SQL with Tabular Model. Meaning if your query looks like this:

Query 1
   Tabular SQL 1

Make it to look like this

Query 1
   Tabular Model 1
      Tabular SQL 1

Than you'll be able to add those parameters as Data Items without disturbing your SQL.
Title: Re: Carry Prompt Values from one report to another
Post by: Darek on 16 Aug 2005 01:57:15 PM
And I've just tested that you can add new Data Items to a query driven by Tabular SQL. At the query level.
Title: Re: Carry Prompt Values from one report to another
Post by: Darek on 16 Aug 2005 01:59:07 PM
I've forgot to ask: what do you mean when you say "windowing logic in the sql"?
Title: Re: Carry Prompt Values from one report to another
Post by: thgeorge on 16 Aug 2005 02:20:06 PM
Thanks a million it works