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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How does showAllrecords work?

(0) ShareShare
ReportReport
Posted on by 120

Hi All, 

I want to know how Show all records in record info( when we right click on form) work? how is data queried and fetched in AX?

I had a requirement to hide pricing related data for a particular role. I customized the role to override permissions and hid all the fields in multiple purch related tables. We still have an issue, that when the uder right clicks on the form and click on show all fields, A display method which calculates the not invoiced amount (purchtable.amountOrderedNotInvoicedMST()) is still shown.

I want to restrict that information for that role, as well as want to know how this show all fields work technically.

Any help is highly appreciated. 

Thank you.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at
    RE: How does showAllrecords work?

    XDS works with a record not individual fields, override security permissions may work but I have not tried. Anyway I don't think that you should give access to that functionally to users, why do they need it at all?

  • Vgubba Profile Picture
    120 on at
    RE: How does showAllrecords work in AX 2012?

    Thank you so much ievgen Miroshnikov, your suggestion worked. I really appreciate your time and knowledge.

    Thanks again..

  • Vgubba Profile Picture
    120 on at
    RE: How does showAllrecords work in AX 2012?

    Thank you ievgen Miroshnikov. I will try your suggestion.

    Is it then safe to say that there is no other way to restrict display methods using XDS or by overriding permissions on security role?

  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: How does showAllrecords work in AX 2012?

    Hi Vkunchakuri,

    First of all, function is called "Show all fields" not show all records. Secondly, it adds all field groups to this form, and "Work item" field group has this display method, so that is how it gets populated. You cannot restrict this display method by security.

    You can either remove access to "Record info" form from this users or do a modification to check if users have access to fields used in the display method and return 0 if they do not. It could be done using Global::hasFieldAccess method.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans