COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: ajf27 on 28 Jan 2019 11:31:17 AM

Title: Search and Select Prompts resetting values selected in Date Prompts
Post by: ajf27 on 28 Jan 2019 11:31:17 AM
I have a report that has a search and select prompt to find an account number.

Additionally I have a date prompt for a start and end date to find the transactions for an account number between those date ranges.

This is the scenario I on how I go through the prompt page:

1) Select the start and end date I wish to look for
2) Search for a account (example 12345)
3) The prompt page refreshes with the account 12345 being a value selectable in the search and select prompt
4) The stand and end dates are reset to the default which is today's date


Is there any way I can have the date prompts retain their values while a search and select prompt is being used?
Title: Re: Search and Select Prompts resetting values selected in Date Prompts
Post by: dougp on 29 Jan 2019 10:29:35 AM
The only time I have seen this is when I was using JavaScript to set the default value of a date prompt.  When the page refreshes (from the REPROMPT action -- fired from an autosubmit) my JavaScript routine would reset the date prompt to the default value.  It's possible that loading the Search & Select prompt performs a REPROMPT.

How is the default value for your date prompt set?