It's calculating the date when the schedule runs, so the date prompt would update to 27 Jul 2013. But we can confirm this by using a date time prompt.
I changed the report to add the current time to the max date. This is what it looks like when I saved it:
Interesting, I'm getting a report server error. Trying to figure this out.

It should be working, not sure what's going on there. Going to keep digging on it. Looks like it might be a problem with using dates or date times in parameter.
Original Message:
Sent: Mon June 19, 2023 06:46 AM
From: Marc Reed
Subject: default selection in value prompt is first value
Always another question - i need access to a C12 test system...
In your example, Max Date is 20 Jul 2013. This is what the prompt is defaulting to.
If I schedule the report then is the schedule for this prompt set to 20 Jul 2013 or max day.
In a weeks time my max day would be 27 Jul 2013.
What would the schedule report use for the prompt.
------------------------------
Marc Reed
Original Message:
Sent: Mon June 19, 2023 06:37 AM
From: Paul Mendelson
Subject: default selection in value prompt is first value
Yeah, I've never liked Calendar prompts. Using the Prompt API on them has also been a bit buggy. In this picture I have a query calculating the min and max dates in the data, and I'm using that to control the prompt.



On the first run the parameter is automatically set based on the max date:

The table containing the date prompt and text items are sitting inside a singleton

And the First Date Source and Last Date Source are both set to Report expression and the data item from the singleton. They don't support query sources, but this works great.

Dates before the first date and after the last date will be grayed out

It won't even let the user type in 2009:

I'm very happy with this. Since it is setting the parameter, you can still report expressions based on the parameter value. Previously you would have to add something like:
case when paramValue('Param') is null then 'Default Value Calculation' else paramValue('Param') end
------------------------------
Paul Mendelson
Original Message:
Sent: Mon June 19, 2023 04:12 AM
From: Marc Reed
Subject: default selection in value prompt is first value
Great for blank prompts then. In the sales demos IBM showed a calendar prompt defaulting to a day.
If that's scheduled, would the schedule be stored with the prompt answer or the expression.
(Calendar prompts have always been dodgy - the only prompt that has a default even when you don't set one.)
------------------------------
Marc Reed
Original Message:
Sent: Mon June 19, 2023 03:41 AM
From: Paul Mendelson
Subject: default selection in value prompt is first value
That's a really good question.
I'm testing like this.
I have a crosstab that returns years and months in the columns with an optional value on Year.

The prompt is based on the year as well, no default defined in the prompt object. Autosubmit is set to true.
In the parameters pane I have one parameter, Year, defined:

The default value is a simple report expression:

When I run the report I get the expected output without any generated prompts:

Setting the Year prompt to no-value also works as expected:

The problem with JavaScript or default values here is that you can't easily unset a parameter. Here this just works great.
While I've been writing this, I also scheduled the report to run in the background and again, it works exactly as I expected:

This tells me that this does work with schedules.
I am absolutely LOVING this new feature.
------------------------------
Paul Mendelson
Original Message:
Sent: Thu June 15, 2023 03:30 AM
From: Marc Reed
Subject: default selection in value prompt is first value
Hi Paul, I haven't had a chance to play with the new c12 'dynamic' prompts.
Do they only work when a user run's a report. If we schedule a report will we still have to use the old techniques.
------------------------------
Marc Reed
Original Message:
Sent: Thu June 15, 2023 12:52 AM
From: Paul Mendelson
Subject: default selection in value prompt is first value
One of the biggest advances in Cognos 12 is you can now dynamically set the default value based on a query, macro, or layout expression. Forget the AI, dashboard, dataset, and other advances - the new parameter page is absolutely the best reason to upgrade to the latest version.
------------------------------
Paul Mendelson
Original Message:
Sent: Sun June 11, 2023 12:52 PM
From: venkatamurali kante
Subject: default selection in value prompt is first value
Hi Team,
Can you please help me how to get default selection is first value in value prompt in Cognos analytics.I have attached screen shot in period value prompt need
default value is 2022 march
------------------------------
Murali
------------------------------