Hi
I have Date on a form . I want to filter record on basis of date . What should i use Setrange or SetFilter. User can enter single Date like 02042018 or also in Range like 02042018..10042018.
Thanks
*This post is locked for comments
Hi
I have Date on a form . I want to filter record on basis of date . What should i use Setrange or SetFilter. User can enter single Date like 02042018 or also in Range like 02042018..10042018.
Thanks
*This post is locked for comments
Hi,
Trying passing the date as 01/01/2017..31/01/2017
It could be probably because 01012017 cannot be decoded to 01/01/2017 as it is a text field.
Hi Jsshivalik,
In this case, you should have a Text on a form (instead of Date). OnValidate the text field, write some code to parse date filter and update it back.
Take a look at table 8626 Config. Package Filter to see how Microsoft Developer did it, very nice.
Is that a Text Variable where they entering the value or a flow filter ? can you send us the screenshot and let us know the source of the field you added on the form.
What is "Date Filter"
Hi Suresh
It is giving error "Type Conversion is not possible because one of the Operators contain an Invalid Type" Text:= Date
TrEntry.SETFILTER(TrEntry.Date,GETFILTER("Date Filter");
Date Entered is like this 01012017..31012017
Thanks
I believe the datefilter you have added is the text, you could add something like this and use the SETFILTER
IF DateFilter <> '' THEN
TrEntry.SETFILTER(Date,DateFilter);
I jsshivalik,
Try using two field say StartDate and EndDate
Now use,
IF EndDate = 0D then
TrEntry.SETFILTER(TrEntry.Date,'%1',StartDate);
ELSE
TrEntry.SETFILTER(TrEntry.Date,'%1..%2',StartDate,EndDate);
Hi
User cannot leave date blank. I have written below code but is giving error "Type Conversion is not possible because one of the Operators contain an Invalid Type" Text:= Date
TrEntry.SETFILTER(TrEntry.Date,DocumentDate);
Thanks
You can use setrange but if user not put any of the date then which date program will pickup.
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... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156