Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

FlowField IsExist on Transfer Order Document show/hide

Posted on by 5,596

Hi all,

We recently implemented a pattern to show/hide master information to a specific user based.

We did it with Bank Accounts. Reference: https://medium.com/nareshwar-r/user-wise-filtering-in-any-master-tables-on-dynamics-nav-98f16ca5e21a#.xtsvuzpu3

What we used is the IsExist method on FlowFields on the Bank Account Table. Everything works fine.

We had the same requirement for Transactional Documents mainly Sales/Purchasing/Transfers, where only the user's location documents will be shown. I am able to handle Sales and Purchasing Documents since it has only one Location Code on its header.

But when handling Transfer Documents, the client asked to check both the Transfer-From and Transfer-To locations, and if any of the location is his location, then show the document to the user. I am unable to add filters with OR or XOR conditions. Please, advise me on this regard?

Any other solutions are also welcome. Thanks in advance :)

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FlowField IsExist on Transfer Order Document show/hide

    i'm not sure if this solution is "elegant" enough but you can add two boolean fields, one for the from-code(A) and one for the to-code(B), then on your page add this code on the OnOpenPage trigger (you can add as many filter you need i write down just the basic)

    IF FINDSET THEN REPEAT

     IF (A=TRUE) OR (B=TRUE) THEN

      MARK(TRUE);

     UNTIL NEXT = 0;

    MARKEDONLY(TRUE);

    IF FINDFIRST THEN;

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans