<?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: Using a &#8220;Magic Date&#8221; Value in Prompts</title>
	<atom:link href="http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/</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: Prakhar T</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-2034</link>
		<dc:creator>Prakhar T</dc:creator>
		<pubDate>Mon, 31 Oct 2011 05:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-2034</guid>
		<description>Hi Dave,

Very important requirement and superb explanation by you.

I was able to achieve this earlier on oracle/db2; however, date prompts coming through BeX are behaving a little differently. (Not exactly, but close to what Sanjit explained above in his comments)

So here is my problem, I have these reports that needs to be scheduled daily (for group 1 users), weekly (for group 2 users), bi-weekly (for group 3 users). No other prompt value changes except date. I am trying to implement &#039;magic date&#039;, but it doesn&#039;t pick the right date; it picks the last manually selected date prompt value.

Any directions or insight would be really helpful.

Cheers,
PT</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Very important requirement and superb explanation by you.</p>
<p>I was able to achieve this earlier on oracle/db2; however, date prompts coming through BeX are behaving a little differently. (Not exactly, but close to what Sanjit explained above in his comments)</p>
<p>So here is my problem, I have these reports that needs to be scheduled daily (for group 1 users), weekly (for group 2 users), bi-weekly (for group 3 users). No other prompt value changes except date. I am trying to implement &#8216;magic date&#8217;, but it doesn&#8217;t pick the right date; it picks the last manually selected date prompt value.</p>
<p>Any directions or insight would be really helpful.</p>
<p>Cheers,<br />
PT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1997</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Tue, 18 Oct 2011 12:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1997</guid>
		<description>Hi, and welcome. Please see my other response above. You have to create a constant value (either a date, string, or number) and then in the logic of the prompt translate that constant into the maximum year/quarter/month as required.</description>
		<content:encoded><![CDATA[<p>Hi, and welcome. Please see my other response above. You have to create a constant value (either a date, string, or number) and then in the logic of the prompt translate that constant into the maximum year/quarter/month as required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemad</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1995</link>
		<dc:creator>Hemad</dc:creator>
		<pubDate>Tue, 18 Oct 2011 07:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1995</guid>
		<description>Hi Dave,
Thanks for nice blog...
My reqquirement is to show max value (year/quarter/month) from date field of table as the defalut value in my prompt.
Kindly let me know is that possible. Thanks</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
Thanks for nice blog&#8230;<br />
My reqquirement is to show max value (year/quarter/month) from date field of table as the defalut value in my prompt.<br />
Kindly let me know is that possible. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1894</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Tue, 06 Sep 2011 13:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1894</guid>
		<description>Hi, that&#039;s the point of this post. You cannot change the default value for a prompt via a formula, so creating a prompt that defaults to the date of today is not possible. The magic date is one possible option, and there are others presented in the comments on this post.</description>
		<content:encoded><![CDATA[<p>Hi, that&#8217;s the point of this post. You cannot change the default value for a prompt via a formula, so creating a prompt that defaults to the date of today is not possible. The magic date is one possible option, and there are others presented in the comments on this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stalin</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1890</link>
		<dc:creator>stalin</dc:creator>
		<pubDate>Wed, 31 Aug 2011 07:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1890</guid>
		<description>Hi Dave,

I am new to Business objects and I am using BOXI2. I need today&#039;s date needs to be selected by default. I gone through the above and i am unable to understand. I am using oracle database and X is table and y is column. I have set the prompt for column y but by defualt like this &#039;Selec the Start Date: 31-Aug-2011&#039; needs to be seclected.

how can i achieve this.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I am new to Business objects and I am using BOXI2. I need today&#8217;s date needs to be selected by default. I gone through the above and i am unable to understand. I am using oracle database and X is table and y is column. I have set the prompt for column y but by defualt like this &#8216;Selec the Start Date: 31-Aug-2011&#8242; needs to be seclected.</p>
<p>how can i achieve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1798</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Mon, 27 Jun 2011 18:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1798</guid>
		<description>Glad to have helped. 8-)</description>
		<content:encoded><![CDATA[<p>Glad to have helped. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZicherCZ</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1797</link>
		<dc:creator>ZicherCZ</dc:creator>
		<pubDate>Mon, 27 Jun 2011 14:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1797</guid>
		<description>Hi Dave,
you seem to have managed to cover two of my greatest customer trouble within an hour. I stand in awe.
I&#039;m going to test this approach tomorrow (on XIR3) - and if it works, then come to Ostrava, Czech Republic, and I owe you a beer or two :).</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
you seem to have managed to cover two of my greatest customer trouble within an hour. I stand in awe.<br />
I&#8217;m going to test this approach tomorrow (on XIR3) &#8211; and if it works, then come to Ostrava, Czech Republic, and I owe you a beer or two <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawan Lodwal</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1792</link>
		<dc:creator>Pawan Lodwal</dc:creator>
		<pubDate>Thu, 23 Jun 2011 11:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1792</guid>
		<description>I wanted the filter like in belo format
Today (Default)
Last week (Last 7 days)
Last 1 month
Last 3 months
Last 6 months
Last 12 months

and I got anster from your website thanks...see the below code to implements the above filter

@Select(Itrack Details\Event Date) =  CASE @Prompt(&#039;Enter Date Value or Special Code&#039;,&#039;A&#039;,{&#039;TODAY&#039;,&#039;Last week (Last 7 days)&#039;,&#039;Last 1 month&#039;,&#039;Last 3 month&#039;,&#039;Last 6 month&#039;,&#039;Last 12 month&#039;},mono,free)

WHEN &#039;01/01/1900 12:00:00 AM&#039; THEN getdate()
WHEN &#039;TODAY&#039; THEN getdate()
WHEN &#039;Last week (Last 7 days)&#039; THEN dateadd(dd,-1,getdate())
WHEN &#039;Last 1 month&#039; THEN dateadd(mm,-1,getdate())
WHEN &#039;Last 3 month&#039; THEN dateadd(mm,-3,getdate())
WHEN &#039;Last 6 month&#039; THEN dateadd(mm,-6,getdate())
WHEN &#039;Last 12 month&#039; THEN dateadd(mm,-12,getdate())

ELSE &#039;&#039;

END

many thanks to all of you for such a nice discussion</description>
		<content:encoded><![CDATA[<p>I wanted the filter like in belo format<br />
Today (Default)<br />
Last week (Last 7 days)<br />
Last 1 month<br />
Last 3 months<br />
Last 6 months<br />
Last 12 months</p>
<p>and I got anster from your website thanks&#8230;see the below code to implements the above filter</p>
<p>@Select(Itrack Details\Event Date) =  CASE @Prompt(&#8217;Enter Date Value or Special Code&#8217;,'A&#8217;,{&#8217;TODAY&#8217;,'Last week (Last 7 days)&#8217;,'Last 1 month&#8217;,'Last 3 month&#8217;,'Last 6 month&#8217;,'Last 12 month&#8217;},mono,free)</p>
<p>WHEN &#8216;01/01/1900 12:00:00 AM&#8217; THEN getdate()<br />
WHEN &#8216;TODAY&#8217; THEN getdate()<br />
WHEN &#8216;Last week (Last 7 days)&#8217; THEN dateadd(dd,-1,getdate())<br />
WHEN &#8216;Last 1 month&#8217; THEN dateadd(mm,-1,getdate())<br />
WHEN &#8216;Last 3 month&#8217; THEN dateadd(mm,-3,getdate())<br />
WHEN &#8216;Last 6 month&#8217; THEN dateadd(mm,-6,getdate())<br />
WHEN &#8216;Last 12 month&#8217; THEN dateadd(mm,-12,getdate())</p>
<p>ELSE &#8221;</p>
<p>END</p>
<p>many thanks to all of you for such a nice discussion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1697</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 12 May 2011 13:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1697</guid>
		<description>Hi, did you post the same question on BOB? I saw a number of topics with very similar questions recently. Such as &lt;a href=&quot;http://www.forumtopics.com/busobj/viewtopic.php?t=175821&quot; rel=&quot;nofollow&quot;&gt;this one&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi, did you post the same question on BOB? I saw a number of topics with very similar questions recently. Such as <a href="http://www.forumtopics.com/busobj/viewtopic.php?t=175821" rel="nofollow">this one</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd</title>
		<link>http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/comment-page-2/#comment-1695</link>
		<dc:creator>Lloyd</dc:creator>
		<pubDate>Tue, 10 May 2011 17:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=98#comment-1695</guid>
		<description>Hey Dave,

I&#039;m looking to use an @prompt in a report, but take the value of the @prompt and use a between statement of that value and 7 days.

For example:

A user selects 2010-11-01 as the @prompt value. I then want to display data using that value and 7 days previous/or after.

Is that possible?

Thanks, great site.

Lloyd.</description>
		<content:encoded><![CDATA[<p>Hey Dave,</p>
<p>I&#8217;m looking to use an @prompt in a report, but take the value of the @prompt and use a between statement of that value and 7 days.</p>
<p>For example:</p>
<p>A user selects 2010-11-01 as the @prompt value. I then want to display data using that value and 7 days previous/or after.</p>
<p>Is that possible?</p>
<p>Thanks, great site.</p>
<p>Lloyd.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

