Trying to add filter Today() on DetailSection

Stimulsoft Reports.WEB discussion
Post Reply
CRgrp2
Posts: 4
Joined: Thu Dec 15, 2022 4:17 pm

Trying to add filter Today() on DetailSection

Post by CRgrp2 »

Hello,

I'm having difficulties adding DetailSection filter using Today() variable.

I can filter successfully with hard coded date:
Field is: Value
Datatype: DateTime
Columm: TicketDate
equal to: 12/13/2022

But if I try using Expression:
Field is: Expression
(AttendSumm.TicketDate = Today) - returns no records

I've also tried (AttendSumm.TicketDate) == (Today)
and tried (AttendSumm.TicketDate = {Today})
and tried (AttendSumm.TicketDate) = Today())

Anyone have any suggestions? your help would be greatly appreciated!!!

thank you
Attachments
FilterToday-detailSection.png
FilterToday-detailSection.png (95.7 KiB) Viewed 1140 times
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Trying to add filter Today() on DetailSection

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
CRgrp2
Posts: 4
Joined: Thu Dec 15, 2022 4:17 pm

Re: Trying to add filter Today() on DetailSection

Post by CRgrp2 »

Thank you for the reply, I've attached sample report.
Attachments
(AttendSumm.TicketDate = Today())_backup.zip
(6.97 KiB) Downloaded 117 times
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Trying to add filter Today() on DetailSection

Post by Lech Kulikowski »

Hello,

We couldn't open that file. It is not our report template format.

Thank you.
CRgrp2
Posts: 4
Joined: Thu Dec 15, 2022 4:17 pm

Re: Trying to add filter Today() on DetailSection

Post by CRgrp2 »

Hello,

Attached few examples, and dictionary file. MRT report is saved as CFF when downloaded from erp application and I cant save directly within stimulsoft report designer.

Nonetheless, still trying to filter detail on DateTime field <TicketDate> when equal to <Today>.

Set "Field Is" = Expression
(AttendSumm.TicketDate = Today)

Apparently, syntax is incorrect?
Attachments
Detail Filter.png
Detail Filter.png (105.99 KiB) Viewed 1087 times
Detail Filter2.png
Detail Filter2.png (100.86 KiB) Viewed 1087 times
Dictionary (1).zip
(1.73 KiB) Downloaded 117 times
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Trying to add filter Today() on DetailSection

Post by Lech Kulikowski »

Hello,

Should be (AttendSumm.TicketDate == Today)

Thank you.
CRgrp2
Posts: 4
Joined: Thu Dec 15, 2022 4:17 pm

Re: Trying to add filter Today() on DetailSection

Post by CRgrp2 »

OMFG! Thank you!! That worked for me. (AttendSumm.TicketDate == Today)

I can't tell you how many different ways I tried to get this to work, anyhow it's now filtering. Thanks again for your help! Much appreciated.
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Trying to add filter Today() on DetailSection

Post by Max Shamanov »

Hello,

You are welcome!
Essier12
Posts: 1
Joined: Thu Dec 22, 2022 10:21 am
Location: NYC USA

Re: Trying to add filter Today() on DetailSection

Post by Essier12 »

useful information
Last edited by Essier12 on Fri Dec 23, 2022 2:42 pm, edited 2 times in total.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Trying to add filter Today() on DetailSection

Post by Lech Kulikowski »

Hello

We are always glad to help!
Post Reply