Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:00:57+00:00 2026-06-07T19:00:57+00:00

I’m trying to make a page display conditionally based on a prompt in Cognos

  • 0

I’m trying to make a page display conditionally based on a prompt in Cognos 10.1.

I have a prompt page with a dropdown that is populated by a query named PromptSQL. PromptSQL returns a table with two columns, Value and Descr. The Value Prompt on the prompt page has had the following properties altered:

Query: PromptSQL
Use Value: Value
Display Value: Descr
Parameter: Location

I created a boolean variable, vShowPage, to determine if one of the report pages, Page 2, should be displayed. The code under vShowPage is simply:

?Location? in ('12', '15', '20')

So, I only want the “Page 2” page to be printed if the location selected is 12, 15 or 20.

I then selected “Page 2” under Report Pages and associated vShowPage to the Render Variable property. When I validate the report I get the following error:

RSV-VAL-0032 The following expression is not valid: ?Location? in
(’12’,’15’,’20’). If the item exists in a query but is not referenced
in the layout, add it to a property list. CRX-API-0005 An error
ocurred at or near the position ‘0’. The variable named ‘?Location?’
is invalid.

I also tried changing the variable to a String Variable, but listing all of the possible values will be problematic. But even the small test I did using the String Variable resulted in the same error.

I tried adding PromptSQL to the Query property of Page 2 and checking the Value column under the Properties property. I even tried checking Value and Descr. These all produced the same error.

I used this link from IBM’s web-site as my template for doing this: How To: Hide a report page based on a prompt

Any help figuring this out would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:00:58+00:00Added an answer on June 7, 2026 at 7:00 pm

    You can’t use the prompt value ?Location? in the conditional expression. Use ParamDisplayValue(‘Location’) or ParamValue(‘Location’) instead, e.g.:
    ParamValue(‘Location’) in (’12’,’15’,’20’).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.