Hello I am using a report to allow users to filter documents between a certain date range. I would always like the "To date" to be today's date and the "From date" to be a date in the past.
I have tried using the expressions as per the screenshot.
It seems to work until I press submit on the user interface and then the query just hangs but does nothing. What is the best way to achieve this?
Thanks
Datetime user input
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Datetime user input
- Attachments
-
- dates.png (126.2 KiB) Viewed 1709 times
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Re: Datetime user input
Hello.
Sorry, but we couldn't reproduce your issue.
Could you specify which Viewer do you use?
What version?
Could you also send us a sample project which reproduces the issue?
Thank you.
Sorry, but we couldn't reproduce your issue.
Could you specify which Viewer do you use?
What version?
Could you also send us a sample project which reproduces the issue?
Thank you.
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Re: Datetime user input
I am using Version=2013.1.1600.0 with the following settings
<cc1:StiWebViewer ID="StiWebViewer1" OpenLinksInNewWindow="false" runat="server" Width="950" RenderMode="AjaxWithCache" Theme="Windows7" />
I can't really send a working sample project. But I will try to update to the latest version to see if it fixes it.
Could you tell me if I am using the correct way to approach this?
I always want the dateTo to be the current date and the dateFrom to be the either a fixed date or better still now().addYears(-2) or something like that?
Thanks
Chris
<cc1:StiWebViewer ID="StiWebViewer1" OpenLinksInNewWindow="false" runat="server" Width="950" RenderMode="AjaxWithCache" Theme="Windows7" />
I can't really send a working sample project. But I will try to update to the latest version to see if it fixes it.
Could you tell me if I am using the correct way to approach this?
I always want the dateTo to be the current date and the dateFrom to be the either a fixed date or better still now().addYears(-2) or something like that?
Thanks
Chris
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Re: Datetime user input
Hello,
It is difficult to say something about the issue without a sample which reproduce the problem.
Thank you.
It is difficult to say something about the issue without a sample which reproduce the problem.
Thank you.