COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Data Modules => Topic started by: dougp on 18 Nov 2022 12:10:29 PM

Title: Prompt Info: Prompt Type = Edit box not honored
Post by: dougp on 18 Nov 2022 12:10:29 PM
Cognos Analytics 11.1.7FP5

I have package from a Framework Manager model where I have defined a query item's [Prompt Info].[Prompt Type] = Edit Box.  I did this because there are over 100,000 distinct values in the column.

When I use this package to create a report with a parameterized filter...

[Namespace].[QuerySubject].[QueryItem] = ?parameter?

...and View Tabular Data, Cognos generates the prompt correctly:  I am presented with a textbox.

But I need to combine data from this package with data from another package and from an uploaded spreadsheet, so I create a data module.

When I do the same thing from the data module...

[M1].[Namespace].[QuerySubject].[QueryItem] = ?parameter?

...and View Tabular Data, Cognos presents me with a dropdown list.  But only the first 5000 rows are shown.

I don't see a way to control prompting behavior in a data module.  Am I missing it?

Other than changing my filter (hard coding values I want to use for testing) is there a good way to troubleshoot queries when using a data module?
Title: Re: Prompt Info: Prompt Type = Edit box not honored
Post by: bus_pass_man on 18 Nov 2022 12:28:34 PM
There's no UI for prompts in data modules. 
Title: Re: Prompt Info: Prompt Type = Edit box not honored
Post by: cognostechie on 21 Nov 2022 07:30:02 PM
If you check the properties of a value prompt in a report, you will see that 'rows per page' defaults to 5000. Maybe that's why it shows you maximum 5000 values. You can increase that in the report. I am not a fan of data modules so never explored it other than for excel files.