Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Filter in Nav

Posted on by Microsoft Employee

Hi all, 

Created a field with Boolean type, If we filtered 'True' then that field should be display and as filtered 'false' then field doesn't show. Please help me.

Thanks,

Madhavi

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Filter in Nav

    Create a Boolean field as a page global variable, and set the IncludeInDataset property to YES.

    For the field you set the VISIBLE property to the Boolean variable you created.

    On the page, add the code in three places in OnAfterGetRecord trigger, OnAfterGetCurrRecord trigger, and the field you are using to control the visibility. The code will set the value for the boolean variable

    For example if you have created boolean as ShowValue then you set that as

    ShowValue := "Field Name" (Where Field name is the name of the field you will use)

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Filter in Nav

    As per Jonathen, please set the visibility of the field to the value of your Boolean variable.

    -Yogesh Kulkarni

    Please verify, if it solves your problem.

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Filter in Nav

    create a global variable of type boolean in the page, where you want to toggle the visibility of that field and set it as value to field property "Visible" of the page field. as an example checkout field "No." in page 30 or in page 42.

  • Luc van Vugt Profile Picture
    Luc van Vugt on at
  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Filter in Nav

    Dear  Madhavi ,

    if you make Boolean value , u have to write a constrain to get the data by "True" or "False"

    check your constrain according to your filtering

  • Binesh Profile Picture
    Binesh 7,885 on at
    RE: Filter in Nav

    As per mohana write more, what you want and where you want.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,133 Super User 2024 Season 2 on at
    RE: Filter in Nav

    and what did you try to achieve it and what is not working?

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans