<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: How Can I Make &#8220;Today&#8221; My Default Prompt Value?</title>
	<atom:link href="http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/</link>
	<description>...you are in a twisty maze of passageways, all different...</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:17:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sd</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2126</link>
		<dc:creator>sd</dc:creator>
		<pubDate>Wed, 18 Jan 2012 16:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2126</guid>
		<description>The optional prompt as suggested by james giving Error 
&quot;Removing skipped prompts from the query will introduce new prompts. This introduces complexities that cannot be supported. (Error: WIS 00027&quot; any updated on this. 
I am on XI 3.1</description>
		<content:encoded><![CDATA[<p>The optional prompt as suggested by james giving Error<br />
&#8220;Removing skipped prompts from the query will introduce new prompts. This introduces complexities that cannot be supported. (Error: WIS 00027&#8243; any updated on this.<br />
I am on XI 3.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2093</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 21 Dec 2011 12:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2093</guid>
		<description>Unfortunately there is no way to validate one prompt with rules based on another prompt. It is one of the enhancements requested for the next generation of the semantic layer. The only way we have to do this today is to either pre-determine what the second value should be based on the first (thus avoiding a second prompt, but removing some flexibility) or to include the first prompt as a part of the second in the form of a cascading prompt event. The disadvantage there is the user has to select the same value both times... and they have to do it twice. There is still no way to enforce that the second selection matches the first because the prompts are independent.

Put another way, the user is free to enter a response for the second prompt before they even touch the first prompt. That shows that each prompt is fully independent of the other.

You could add some SDK code as a custom prompt handler but that&#039;s beyond the scope of what I&#039;m able to provide on my blog.</description>
		<content:encoded><![CDATA[<p>Unfortunately there is no way to validate one prompt with rules based on another prompt. It is one of the enhancements requested for the next generation of the semantic layer. The only way we have to do this today is to either pre-determine what the second value should be based on the first (thus avoiding a second prompt, but removing some flexibility) or to include the first prompt as a part of the second in the form of a cascading prompt event. The disadvantage there is the user has to select the same value both times&#8230; and they have to do it twice. There is still no way to enforce that the second selection matches the first because the prompts are independent.</p>
<p>Put another way, the user is free to enter a response for the second prompt before they even touch the first prompt. That shows that each prompt is fully independent of the other.</p>
<p>You could add some SDK code as a custom prompt handler but that&#8217;s beyond the scope of what I&#8217;m able to provide on my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2091</link>
		<dc:creator>Anna</dc:creator>
		<pubDate>Tue, 20 Dec 2011 21:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2091</guid>
		<description>Hi Dave,

I have a requirement where in I have two derived tables : 
1) derivedtable1 - startdate
2) derivedtable2 - enddate
Each of these tables have statements like select &#039;01 preivous business day start&#039; as id UNION &#039;02 Previous week day start&#039; UNION etc. (Similarly for the enddate). and the case statements are defined in another table 
as prompts with (CASE @Prompt(&#039;1. Start Date in MM/DD/YYYY format / Select Quick Date&#039;,&#039;A&#039;,&#039;DATE\Derivedtable1&#039;,MONO,FREE)
WHEN &#039;01 Previous Business Day_Start&#039; THEN 
        case (trim(to_char(current_date,&#039;day&#039;)))
                
WHEN &#039;02 Previous Week Start Date&#039; THEN to_date(date_trunc(&#039;week&#039;, (to_date(date_trunc(&#039;week&#039;, current_date),&#039;yyyy-mm-dd&#039;)-1)), &#039;yyyy-mm-dd&#039;)       
WHEN &#039;03 Month-To-Date Start Date&#039; THEN to_date(date_trunc(&#039;month&#039;, current_date),&#039;yyyy-mm-dd&#039;) 
etc.... and 
WHEN &#039;07 Last 365 days from the Previous Business Day&#039; THEN (current_date- cast(&#039;365 days&#039; as interval))
WHEN &#039;08 Two weeks from the Previous Business Day&#039; THEN (current_date- cast(&#039;14 days&#039; as interval))  

Then the case statements for enddate are also mentioned in a similar fashion below this with appropriate prompts. 

My concern is when the user selects Last 365 days from the Previous Business Day or Two weeks from the previous Business day as his start date options, he should get only One option for enddate which should be &quot;Previous Business day End&quot;. I dont want him to select any other options from the end date for these two cases alone. So how do I limit this. Please provide me with an example code for it.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have a requirement where in I have two derived tables :<br />
1) derivedtable1 &#8211; startdate<br />
2) derivedtable2 &#8211; enddate<br />
Each of these tables have statements like select &#8216;01 preivous business day start&#8217; as id UNION &#8216;02 Previous week day start&#8217; UNION etc. (Similarly for the enddate). and the case statements are defined in another table<br />
as prompts with (CASE @Prompt(&#8217;1. Start Date in MM/DD/YYYY format / Select Quick Date&#8217;,'A&#8217;,'DATE\Derivedtable1&#8242;,MONO,FREE)<br />
WHEN &#8216;01 Previous Business Day_Start&#8217; THEN<br />
        case (trim(to_char(current_date,&#8217;day&#8217;)))</p>
<p>WHEN &#8216;02 Previous Week Start Date&#8217; THEN to_date(date_trunc(&#8217;week&#8217;, (to_date(date_trunc(&#8217;week&#8217;, current_date),&#8217;yyyy-mm-dd&#8217;)-1)), &#8216;yyyy-mm-dd&#8217;)<br />
WHEN &#8216;03 Month-To-Date Start Date&#8217; THEN to_date(date_trunc(&#8217;month&#8217;, current_date),&#8217;yyyy-mm-dd&#8217;)<br />
etc&#8230;. and<br />
WHEN &#8216;07 Last 365 days from the Previous Business Day&#8217; THEN (current_date- cast(&#8217;365 days&#8217; as interval))<br />
WHEN &#8216;08 Two weeks from the Previous Business Day&#8217; THEN (current_date- cast(&#8217;14 days&#8217; as interval))  </p>
<p>Then the case statements for enddate are also mentioned in a similar fashion below this with appropriate prompts. </p>
<p>My concern is when the user selects Last 365 days from the Previous Business Day or Two weeks from the previous Business day as his start date options, he should get only One option for enddate which should be &#8220;Previous Business day End&#8221;. I dont want him to select any other options from the end date for these two cases alone. So how do I limit this. Please provide me with an example code for it.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2026</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 26 Oct 2011 13:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2026</guid>
		<description>Andreas, Michael Welter covers how to do that in a blog post of his own:

http://michaelwelter.wordpress.com/2011/02/08/date-prompt-with-default-today/</description>
		<content:encoded><![CDATA[<p>Andreas, Michael Welter covers how to do that in a blog post of his own:</p>
<p><a href="http://michaelwelter.wordpress.com/2011/02/08/date-prompt-with-default-today/" rel="nofollow">http://michaelwelter.wordpress.com/2011/02/08/date-prompt-with-default-today/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas (Xeradox)</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2024</link>
		<dc:creator>Andreas (Xeradox)</dc:creator>
		<pubDate>Wed, 26 Oct 2011 10:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2024</guid>
		<description>What you can do though is use &quot;TODAY&quot; for example as a value, but you will loose the calendar picker that way for regular date entries</description>
		<content:encoded><![CDATA[<p>What you can do though is use &#8220;TODAY&#8221; for example as a value, but you will loose the calendar picker that way for regular date entries</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didy</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-2018</link>
		<dc:creator>Didy</dc:creator>
		<pubDate>Mon, 24 Oct 2011 03:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-2018</guid>
		<description>Thank Dave..since my requirement is a dynamic value as default value, it&#039;s time to educate the user that this is impossible to implement at this moment..anyway, appreciate your advise :)</description>
		<content:encoded><![CDATA[<p>Thank Dave..since my requirement is a dynamic value as default value, it&#8217;s time to educate the user that this is impossible to implement at this moment..anyway, appreciate your advise <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1996</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Tue, 18 Oct 2011 11:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1996</guid>
		<description>You can&#039;t put an object in as a default value, it has to be a value. That&#039;s what this blog post is all about; using the &quot;magic date&quot; to translate into a dynamic value. There are other options listed in the comments that have been provided by other folks reading this post. But you have to use a constant (either a constant date or a string or a numeric value) as the default value for a prompt.</description>
		<content:encoded><![CDATA[<p>You can&#8217;t put an object in as a default value, it has to be a value. That&#8217;s what this blog post is all about; using the &#8220;magic date&#8221; to translate into a dynamic value. There are other options listed in the comments that have been provided by other folks reading this post. But you have to use a constant (either a constant date or a string or a numeric value) as the default value for a prompt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didy</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1994</link>
		<dc:creator>Didy</dc:creator>
		<pubDate>Tue, 18 Oct 2011 06:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1994</guid>
		<description>Hi Dave,
Thanks for your reply. So basically I have created an object to select the maximum/latest fiscal year &amp; quarter and names this as Max FYQ. Query fo 
Max FYQ = 
   Select : max(Fiscal_Year+PCQR_Quarter)
   Where : Archive  IS NOT NULL 

Then I create this @prompt(I have error when tried to parsed this prompt, which I dont understand why):
    @Prompt(&#039;Enter Fiscal Year &amp; quarter&#039;,&#039;A’,&#039;History Issue\FYQ&#039;,mono,constrained,persistent,{’Max FYQ’})

I received errror : Error parsing default values parameter (7th parameter)

I&#039;m not sure where should i tweak my syntax at the moment..if anyone can share yours, would be appreciate as well..</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
Thanks for your reply. So basically I have created an object to select the maximum/latest fiscal year &amp; quarter and names this as Max FYQ. Query fo<br />
Max FYQ =<br />
   Select : max(Fiscal_Year+PCQR_Quarter)<br />
   Where : Archive  IS NOT NULL </p>
<p>Then I create this @prompt(I have error when tried to parsed this prompt, which I dont understand why):<br />
    @Prompt(&#8217;Enter Fiscal Year &amp; quarter&#8217;,'A’,&#8217;History Issue\FYQ&#8217;,mono,constrained,persistent,{’Max FYQ’})</p>
<p>I received errror : Error parsing default values parameter (7th parameter)</p>
<p>I&#8217;m not sure where should i tweak my syntax at the moment..if anyone can share yours, would be appreciate as well..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1989</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Mon, 17 Oct 2011 12:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1989</guid>
		<description>You cannot put in a dynamic value for a default for a prompt. You have to create some sort of work-around where a hard-coded value gets dynamically reassigned, which is the technique outlined here in this blog post.</description>
		<content:encoded><![CDATA[<p>You cannot put in a dynamic value for a default for a prompt. You have to create some sort of work-around where a hard-coded value gets dynamically reassigned, which is the technique outlined here in this blog post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didy</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1985</link>
		<dc:creator>Didy</dc:creator>
		<pubDate>Mon, 17 Oct 2011 06:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1985</guid>
		<description>Hi Dave,
I am using BOX1r3 and have a requirement to add a default value in my prompt(dynamic value). I have posted in BOB for this question but unfortunately from the reply looks like this cannot be done. I&#039;ve tried also to create @prompt by putting a default value, but it doenst work. 
So I am trying again my luck to check from your forum if this is availe, adding a dynamic value as a default value. 
My customer request to add a default value of a maximum/latest quarter that is flagged thru a web based system. I have created an object to get this latest/maximum quarter(this is working). But i have difficulties in order to add this object as a default value in the @prompt. Any tips/tricks from you? Please advise. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
I am using BOX1r3 and have a requirement to add a default value in my prompt(dynamic value). I have posted in BOB for this question but unfortunately from the reply looks like this cannot be done. I&#8217;ve tried also to create @prompt by putting a default value, but it doenst work.<br />
So I am trying again my luck to check from your forum if this is availe, adding a dynamic value as a default value.<br />
My customer request to add a default value of a maximum/latest quarter that is flagged thru a web based system. I have created an object to get this latest/maximum quarter(this is working). But i have difficulties in order to add this object as a default value in the @prompt. Any tips/tricks from you? Please advise. Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

