Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

GetRangeMin

Posted on by 3,027

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
    Suresh Kulla 43,745 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
    jsshivalik 3,027 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
    Suresh Kulla 43,745 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
    Andrey Baludin 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
    Stefano Demiliani 37,162 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans