i have 4 countries in my database as USA, UK, INDIA, CHANA.
In value prompt's prompt control list, i want
WESTERN_COUNTRIES, ASIAN_COUNTRIES instead of those country
names.
When i click on WESTERN_COUNTRIES, it should retrieve USA,
UK records and when i click on ASIAN_COUNTRIES, it should
retrieve INDIA, CHINA records.
How is it possible?
Answers were Sorted based on User's Feedback
Answer / itesh
simple man ,
create country prompt with 2 dynamic prompt value dispay
value WESTERN_COUNTRIES>use vale (1)ASIAN_COUNTRIES (2)
in report query put filter
write a if statement
if (?country?)=1
then country in (USA,UK)
else country in (INDIA, CHINA)
cheers
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / gajendra kumar
Just add static choices to value parameter as WESTERN_COUNTRIES, ASIAN_COUNTRIES. In report query add the filter (?parameter? = 'WESTERN_COUNTRIES' and [Dataitem] in ('USA', 'UK'))
or
(?parameter? = 'ASIAN_COUNTRIES' and [Dataitem] in ('INDIA', 'CHINA'))
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / beckham
Use a customized data item in a query.this query is the
source query for the region prompt.Make sure the customized
data item is used in main query and filterd accordingly.
| Is This Answer Correct ? | 4 Yes | 5 No |
------------ Diff b/w MemberCaption and MemberDescription?
is it possible to display the column names in first page but not in remaining pages i.e if a report contains 10 pages column names should be displayed in 1st page but not remaining pages ( 2 to 10)
What are the differences between Cognos ReportNet 1.1, Cognos 8? and enhancements in cognos 8?
5. Which type of report you build more, list, crosstab or chart and why?
what are the names of the reports that you prepared?
What is Additive function?
what is the generated prompt,how can i use?
3. Differences between Cognos Sql & Native Sql? What are their Advantages and Disadvantages?
How can you schedule the report that it displays a day old data. (My answer was to create a view, but the lady wanted some other method).
write a query to display the third record from the employee table?
What is model filter and query filter?
Can u please describe the different types of traps with eg. Thanks