Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

GetRangeMin

(0) ShareShare
ReportReport
Posted on by 3,099

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

  • Suggested answer
    Suresh Kulla Profile Picture
    47,688 on at
    RE: GetRangeMin

    You cannot use GETRANGEMIN on a variable it should be on Record Variable of that field. Rec.GETRANGEMIN("Posting Date")

  • jsshivalik Profile Picture
    3,099 on at
    RE: GetRangeMin

    Hi

      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

  • Suggested answer
    Suresh Kulla Profile Picture
    47,688 on at
    RE: GetRangeMin

    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.

  • Suggested answer
    Andrey Baludin Profile Picture
    3,941 on at
    RE: GetRangeMin

    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);

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: GetRangeMin

    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]

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans