Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Replace the hard-coded</p> <pre><code>[Date].&amp;amp;[2008-09-26T00:00:00] </code></pre> <p>to formula</p> <pre><code>=DateAdd("m", -1, Now) </code></pre> <p>For "ToDate", just pass a formula that returns current date</p> <pre><code>=Now </code></pre> <p>Now the result looks something like this.</p> <pre><code>&lt;ReportParameters&gt; &lt;ReportParameter Name="FromDate"&gt; &lt;DataType&gt;DateTime&lt;/DataType&gt; &lt;DefaultValue&gt; &lt;Values&gt; &lt;Value&gt;=DateAdd("m", -1, Now)&lt;/Value&gt; &lt;/Values&gt; &lt;/DefaultValue&gt; &lt;AllowBlank&gt;true&lt;/AllowBlank&gt; &lt;Prompt&gt;FromDate&lt;/Prompt&gt; &lt;/ReportParameter&gt; &lt;ReportParameter Name="ToDate"&gt; &lt;DataType&gt;DateTime&lt;/DataType&gt; &lt;DefaultValue&gt; &lt;Values&gt; &lt;Value&gt;=Now&lt;/Value&gt; &lt;/Values&gt; &lt;/DefaultValue&gt; &lt;AllowBlank&gt;true&lt;/AllowBlank&gt; &lt;Prompt&gt;ToDate&lt;/Prompt&gt; &lt;/ReportParameter&gt; &lt;/ReportParameters&gt; </code></pre> <p><strong><em>[UPDATE]</em></strong><br /> It looks like I have forgotten to paste <code>&lt;ReportParameters&gt;</code> correctly for <em>ToDate</em>; it's updated. Above RDL was generated by configuring <em>Report Parameter</em>. This is how I have configured date in GUI.</p> <ul> <li><p>FromDate:<br /> <img src="https://farm4.static.flickr.com/3614/3346000613_483516b4d3.jpg" alt="alt text"></p></li> <li><p>ToDate: <br /> <img src="https://farm4.static.flickr.com/3363/3346000617_b85cf206ff.jpg" alt="alt text"></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload