Notifications
Announcements
Hi
I have C/Al Date Global variable on Request Page in a report . I want to get its GetRangeMin,GetRangeMax.
Thanks
*This post is locked for comments
Unclear question: however the methods are as follows:
GETRANGEMIN:
[View:https://msdn.microsoft.com/en-us/library/dd301207.aspx]
GETRANGEMAX:
[View:https://msdn.microsoft.com/en-us/library/dd338625.aspx]
If you mean that you want to create date filter range after input on report request page - you can make it with Application management (Codeunit 1) :
ApplicationMgt.MakeDateFilter(DateFilter);
You cannot use on a variable use a flowfilter or create a new flowfilter and use those functions on that field. Or use two separate fields for Start Date and EndDate and then build the Date Filter.
I have below code it is giving error A variable is required. I have defined RRDt as Date Datatype. User enters Date on request Page.
IF (RDate >= GETRANGEMIN('RRDt')) AND (RDate <= GETRANGEMAX('RRDt')) THEN BEGIN
You cannot use GETRANGEMIN on a variable it should be on Record Variable of that field. Rec.GETRANGEMIN("Posting Date")
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HoangNam 7