<?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>Mon, 06 Sep 2010 13:36:59 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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-1316</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Sun, 08 Aug 2010 19:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1316</guid>
		<description>Hi, Dan, and thanks for your input. It&#039;s similar to another solution posted earlier in the comments. My observation on what you have posted is that it works perfectly if the user only uses text tokens that get translated to date values. It gets more complex if the user wants to mix text tokens with actual dates.</description>
		<content:encoded><![CDATA[<p>Hi, Dan, and thanks for your input. It&#8217;s similar to another solution posted earlier in the comments. My observation on what you have posted is that it works perfectly if the user only uses text tokens that get translated to date values. It gets more complex if the user wants to mix text tokens with actual dates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Fields</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1314</link>
		<dc:creator>Dan Fields</dc:creator>
		<pubDate>Fri, 06 Aug 2010 22:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1314</guid>
		<description>I usually make contidions in my universes that contain the code below for my various date fields. 




DM_OLAP.POLICY_ALL_PIT.INCEPTION_DATE BETWEEN 
      CASE 
              WHEN       (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Last Full Month&#039;
               THEN TRUNC(ADD_MONTHS(SYSDATE,-1),&#039;MM&#039;)
              WHEN       (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Year to Date&#039;
               THEN CASE 
                          WHEN TO_CHAR(SYSDATE,&#039;MM&#039;) = &#039;01&#039;
                           THEN TRUNC (ADD_MONTHS(SYSDATE,-12),&#039;RR&#039;) ELSE TRUNC (SYSDATE,&#039;RR&#039;) END
              WHEN       (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Last 12 Months&#039;
               THEN    add_months(TRUNC (SYSDATE,&#039;MM&#039;),-13)
         
    END
AND 
    CASE 
              WHEN      (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Last Full Month&#039;
               THEN TRUNC (SYSDATE, &#039;MM&#039;) - 1
              WHEN      (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Year to Date&#039;
               THEN TRUNC (SYSDATE, &#039;MM&#039;) - 1
              WHEN      (@Prompt(&#039;Expiration Time Period&#039;,&#039;A&#039;,{ &#039;Last Full Month&#039;,&#039;Year to Date&#039;, &#039;Last 12 Months&#039;},mono,free)) = &#039;Last 12 Months&#039;
               THEN TRUNC (SYSDATE, &#039;MM&#039;) - 1
              
    END</description>
		<content:encoded><![CDATA[<p>I usually make contidions in my universes that contain the code below for my various date fields. </p>
<p>DM_OLAP.POLICY_ALL_PIT.INCEPTION_DATE BETWEEN<br />
      CASE<br />
              WHEN       (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Last Full Month&#8217;<br />
               THEN TRUNC(ADD_MONTHS(SYSDATE,-1),&#8217;MM&#8217;)<br />
              WHEN       (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Year to Date&#8217;<br />
               THEN CASE<br />
                          WHEN TO_CHAR(SYSDATE,&#8217;MM&#8217;) = &#8216;01&#8242;<br />
                           THEN TRUNC (ADD_MONTHS(SYSDATE,-12),&#8217;RR&#8217;) ELSE TRUNC (SYSDATE,&#8217;RR&#8217;) END<br />
              WHEN       (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Last 12 Months&#8217;<br />
               THEN    add_months(TRUNC (SYSDATE,&#8217;MM&#8217;),-13)</p>
<p>    END<br />
AND<br />
    CASE<br />
              WHEN      (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Last Full Month&#8217;<br />
               THEN TRUNC (SYSDATE, &#8216;MM&#8217;) &#8211; 1<br />
              WHEN      (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Year to Date&#8217;<br />
               THEN TRUNC (SYSDATE, &#8216;MM&#8217;) &#8211; 1<br />
              WHEN      (@Prompt(&#8217;Expiration Time Period&#8217;,'A&#8217;,{ &#8216;Last Full Month&#8217;,'Year to Date&#8217;, &#8216;Last 12 Months&#8217;},mono,free)) = &#8216;Last 12 Months&#8217;<br />
               THEN TRUNC (SYSDATE, &#8216;MM&#8217;) &#8211; 1</p>
<p>    END</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-1220</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1220</guid>
		<description>Hi, Daif, thanks for your comment. I would not implement the solution as I think you described it. Instead, I would create a predefined condition in my universe that prompts the user by asking, &quot;Do you want US or All Other?&quot; If the user answered US, then only US rows would be returned. If the user answered &quot;All Other&quot; then only  non-US rows would return. You can&#039;t change the operator in a prompt; meaning you can&#039;t ask the user if they want &quot;equal to&quot; or &quot;not equal to&quot; as a part of the prompt process. You have to handle it with logic that processes their requested result instead.</description>
		<content:encoded><![CDATA[<p>Hi, Daif, thanks for your comment. I would not implement the solution as I think you described it. Instead, I would create a predefined condition in my universe that prompts the user by asking, &#8220;Do you want US or All Other?&#8221; If the user answered US, then only US rows would be returned. If the user answered &#8220;All Other&#8221; then only  non-US rows would return. You can&#8217;t change the operator in a prompt; meaning you can&#8217;t ask the user if they want &#8220;equal to&#8221; or &#8220;not equal to&#8221; as a part of the prompt process. You have to handle it with logic that processes their requested result instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daif</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-1219</link>
		<dc:creator>Daif</dc:creator>
		<pubDate>Thu, 10 Jun 2010 20:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-1219</guid>
		<description>My Question is from Island Resort Mark. Can i keep a single prompt on Country as Country =US and Country Not Equal to US (rest of the values)in Designer, If the user selects Country = US it should show US Data and if Not Equal to US i should show rest of the countries Data?</description>
		<content:encoded><![CDATA[<p>My Question is from Island Resort Mark. Can i keep a single prompt on Country as Country =US and Country Not Equal to US (rest of the values)in Designer, If the user selects Country = US it should show US Data and if Not Equal to US i should show rest of the countries Data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Burger</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-974</link>
		<dc:creator>Marc Burger</dc:creator>
		<pubDate>Thu, 07 Jan 2010 00:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-974</guid>
		<description>Re comment by Anjali:

Hi Anjali,

To schedule reports, you need to have defaults. So I achieved this by setting default values on the universe prompt:

@Select(Rep01\Arrival Date Object)  = @Prompt(&#039;Reporting Period:&#039;,&#039;A&#039;,{&#039;Today&#039;,&#039;Yesterday&#039;,&#039;Custom&#039;},mono,constrained,not_persistent,{&#039;Yesterday&#039;})

Thus &quot;yesterday&quot; is the default date and what is used when scheduling.
When a user runs the report manually, they have to select &quot;Custom&quot; from the picklist. If you follow the intructions I mentioned previously, you will see this will no return no values untill you use your &quot;secondary&quot; prompts which is in actual fact your webi prompts which are set to optional.

One behaviour we have noticed with the date objects as described above, if you don&#039;t have a table, its best to seperate the code for &quot;yesterday&quot; and &quot;month to date&quot; and then have i.e &quot;previous month&quot;. If you need more detailed explantion let me know and I&#039;ll update when I have time.

Hope that clears it up for you.
Marc</description>
		<content:encoded><![CDATA[<p>Re comment by Anjali:</p>
<p>Hi Anjali,</p>
<p>To schedule reports, you need to have defaults. So I achieved this by setting default values on the universe prompt:</p>
<p>@Select(Rep01\Arrival Date Object)  = @Prompt(&#8217;Reporting Period:&#8217;,'A&#8217;,{&#8217;Today&#8217;,'Yesterday&#8217;,'Custom&#8217;},mono,constrained,not_persistent,{&#8217;Yesterday&#8217;})</p>
<p>Thus &#8220;yesterday&#8221; is the default date and what is used when scheduling.<br />
When a user runs the report manually, they have to select &#8220;Custom&#8221; from the picklist. If you follow the intructions I mentioned previously, you will see this will no return no values untill you use your &#8220;secondary&#8221; prompts which is in actual fact your webi prompts which are set to optional.</p>
<p>One behaviour we have noticed with the date objects as described above, if you don&#8217;t have a table, its best to seperate the code for &#8220;yesterday&#8221; and &#8220;month to date&#8221; and then have i.e &#8220;previous month&#8221;. If you need more detailed explantion let me know and I&#8217;ll update when I have time.</p>
<p>Hope that clears it up for you.<br />
Marc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anjali</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-943</link>
		<dc:creator>Anjali</dc:creator>
		<pubDate>Mon, 14 Dec 2009 11:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-943</guid>
		<description>Hi Jayanth,
Can u please tell me how did u achieve it. I have to schedule a report to run on every monday. The req is that there is a promt : Start Date .It should take the sysdate of every monday and run the report.And the user should also be able to enter a value in the prompt when he wants to run the report.</description>
		<content:encoded><![CDATA[<p>Hi Jayanth,<br />
Can u please tell me how did u achieve it. I have to schedule a report to run on every monday. The req is that there is a promt : Start Date .It should take the sysdate of every monday and run the report.And the user should also be able to enter a value in the prompt when he wants to run the report.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dacha</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-892</link>
		<dc:creator>Dacha</dc:creator>
		<pubDate>Thu, 12 Nov 2009 11:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-892</guid>
		<description>Hi Dave,

I have one question for desktop intelligence.
SQL-1 return data set and I want (if is it possible) to use one of the dimension variables as input in another SQL-2</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have one question for desktop intelligence.<br />
SQL-1 return data set and I want (if is it possible) to use one of the dimension variables as input in another SQL-2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayanth Kumar</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-865</link>
		<dc:creator>Jayanth Kumar</dc:creator>
		<pubDate>Thu, 29 Oct 2009 23:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-865</guid>
		<description>I&#039;ve been able to use the trick suggested by Marc Burger and tweaked it up a bit. 

I have a report that defaults to Current Month to Date as well as gives a prompt option to be able to select different dates. I&#039;ve tried scheduling the report with these options and it runs sweeeeet. 

Thanks a lottttttt to Marc for having shown a way ahead and thanks Dave for this very useful blog of yours:)

Regards
Jayanth KN</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been able to use the trick suggested by Marc Burger and tweaked it up a bit. </p>
<p>I have a report that defaults to Current Month to Date as well as gives a prompt option to be able to select different dates. I&#8217;ve tried scheduling the report with these options and it runs sweeeeet. </p>
<p>Thanks a lottttttt to Marc for having shown a way ahead and thanks Dave for this very useful blog of yours:)</p>
<p>Regards<br />
Jayanth KN</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-716</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 27 Aug 2009 01:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-716</guid>
		<description>Hi, Shiva, as I mentioned in the post I will use that as a topic for a later blog post. :)</description>
		<content:encoded><![CDATA[<p>Hi, Shiva, as I mentioned in the post I will use that as a topic for a later blog post. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shiva</title>
		<link>http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/comment-page-1/#comment-714</link>
		<dc:creator>Shiva</dc:creator>
		<pubDate>Wed, 26 Aug 2009 07:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=97#comment-714</guid>
		<description>Hi Dave,

Under &quot;Things I really REALLY wish prompts could doâ€¦&quot; topic... the point 3 is always a points of concern for me... As i have a lot of confusion..
 
How cascading prompts are created? 
What are the things we should keep in mind while creating a cascading prompts? 
How they work? 
How are they related to cascading LOVs? 

I&#039;ve once tried when i started learning BO on my oown and i couldn&#039;t do it .. as  i knew no one working on BO at that time.. Ever since i&#039;m not able to do it or understand it.

Could you please explain these with example?? This help will be deeply appreciated. :D

Regards,
Shiva</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Under &#8220;Things I really REALLY wish prompts could doâ€¦&#8221; topic&#8230; the point 3 is always a points of concern for me&#8230; As i have a lot of confusion..</p>
<p>How cascading prompts are created?<br />
What are the things we should keep in mind while creating a cascading prompts?<br />
How they work?<br />
How are they related to cascading LOVs? </p>
<p>I&#8217;ve once tried when i started learning BO on my oown and i couldn&#8217;t do it .. as  i knew no one working on BO at that time.. Ever since i&#8217;m not able to do it or understand it.</p>
<p>Could you please explain these with example?? This help will be deeply appreciated. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Regards,<br />
Shiva</p>
]]></content:encoded>
	</item>
</channel>
</rss>
