web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How can set filter in page?

(0) ShareShare
ReportReport
Posted on by 115

Hi, Friends!
I'm have a questions about filter. How can set filter with c/al code. Every user to visible only his records and not visible other records in the table? Every time when you (current person) open page to see their records. 

Thanks so much!

Example:

Users: Michael, Jim, Sarah

Every people have a five record.

Jim entered the system should see only their records.

Jim visited only five records.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    What is the field available on the record to identify it is his record ? on the open page or onaftergetrecord to set filter like

    FILTERGROUP(2);

    SETRANGE("user Id",USERID) where USERID should give you the current user.

    FILTERGROUP(0);

    or check the page 9307 where it filters based on the user responsibility center by using the function SetSecurityFilterOnRespCenter you can do something like that.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi YuliyanR,

    You can also accomplish this by using security filters (without any development), but I guess it would get a bit messy (as you would need one permission set per user). But keep in mind that security filters can cause errors if used with some types of records (for example, you will probably get errors if you try to set a security filter on Sales Line table or maybe ledger entry tables). That being said, I have used security filters effectively with the Customer, Item, Vendor tables, (tables that are primarily used for lookup only).

    The good thing about security filters is that they affect every page in the system and can be changed easily by the end user's IT department. The bad thing is that if you add another permission set to the user and that other permission set has the same table but with no filter, then in this case the user would be able to see all records.

    Regards,

    Ted 

  • Verified answer
    Alexander Ermakov Profile Picture
    28,096 on at

    This topic might be helpful - Filtering Data on a Microsoft Dynamics NAV Page: msdn.microsoft.com/.../hh165809(v=nav.70).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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans