Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Filter in Nav

(0) ShareShare
ReportReport
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,194 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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans