Datetime user input

Stimulsoft Reports.WEB discussion
Post Reply
User avatar
ChrisCookDev
Posts: 41
Joined: Sun May 20, 2012 7:07 pm
Location: UK

Datetime user input

Post 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
Attachments
dates.png
dates.png (126.2 KiB) Viewed 1708 times
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Datetime user input

Post 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.
User avatar
ChrisCookDev
Posts: 41
Joined: Sun May 20, 2012 7:07 pm
Location: UK

Re: Datetime user input

Post 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
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Datetime user input

Post by Alex K. »

Hello,

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

Thank you.
Post Reply