Announcements
Hi Experts,
I want to open a form with Date filter (today+1 ) using combo box .
This Datefilter (combo box) will filter my Date field of custom form having only one DataSource.
I have created a combo box in form .
how to write logic for this condition.
It would be because you added date range of minimum value to Today + 1. As per your requirement, it was just Today + 1 on initialization. Please check the code I shared before and modify your date range value.
I thought it would be hard to detect since you didn't set first value to the control, but I noticed something different.
Do you only want the records for tomorrow or the records until tomorrow? (You filtered single day in Modified, but you used range in init)
Set control value at init
Just last thing.
filter of today+1 is not working, while opening the form.
At modified use this.dateValue( not DateControl)
Issue still seems to be with your date control, you can create new form control of type date, set EDT as TransDate. Override modified and use the code there.
Thanks Mohit & Martin.
Now the code is working fine .
Thankyou so much ..
I would start by changing DateControl.dateValue() to this.dateValue().
Hi Mohit,
Moved my code to Data source init.
Now getting error in on modified of Datecontrol
It seems like you have placed the code in form init instead of Form Datasource init. If yes, then please move it to form Datasource init method.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,246 Super User 2024 Season 2
Martin Dráb 228,041 Super User 2024 Season 2
nmaenpaa 101,148