Page 1 of 1

Datetime user input

Posted: Thu Dec 05, 2013 4:19 pm
by ChrisCookDev
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

Re: Datetime user input

Posted: Mon Dec 09, 2013 8:07 am
by HighAley
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.

Re: Datetime user input

Posted: Wed Dec 11, 2013 5:11 pm
by ChrisCookDev
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

Re: Datetime user input

Posted: Thu Dec 12, 2013 7:48 am
by Alex K.
Hello,

It is difficult to say something about the issue without a sample which reproduce the problem.

Thank you.