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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Customer permission on form by Group

(0) ShareShare
ReportReport
Posted on by

Hi,

I am new to Dynamic AX and trying to figured out something about permission.

I am using AX Dynamics 2009. Now a customer asked me to restrict access to a form for specific group allow them to see only specific fields.

Using User Group permission I restricted access to the table field and indeed they are not visible anymore but I have some issues:

1)The label are still there and I cannot find a way to hide these only to the specific group so what is left on the form is all messed up.

2) One of the field is not populated directly from a table but call a function/method like this:

display Name namex()
{
return name_active.namex;
}

How can I restrict access to this? From user group permission I cannot see this function and I cannot figured out how to do it through AOT.

Hope this was clear enough.

Any help would be appreciated.

Regards

Federico

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    1. The label of what and where?
    2. You can't set permissions on display methods. But you can hide the control in code if certain conditions are met (e.g. that the user doesn't have permissions to read the underlying field).

  • Community Member Profile Picture
    on at

    The Form display a certain numbers of information:

    eg:

    Rent:   value                           Rent4: Display Method

    Rent2: Value2

    Rent3: Value3

    Now I want the group to be able to see only Rent3, through user group permission I restricted access and I have this situation:

    Rent:   value3      Rent4: Display Method

    Rent2:

    Rent3:

    So the values disappear but the name of the field the static text is still there

    Federico

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    That's not the usual and expected behavior. Didn't you add labels as separate static text controls, instead of just settings the Label property of the controls bound to fields?

  • Community Member Profile Picture
    on at

    Hi,

    I am not sure what you mean about that but for what was  I able to understand from the form setup layout, was that the Text seems to be independent and no bound to the field.

    I am not the one who developed the form this was done from someone else.

    when you said bounding the setting of the label property to the control would that mean that deny access to the control field would also make the text disappear?

    Federico

  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Yes, it seems that your problem is caused by incorrect implementation. Your text control naturally doesn't care that some other control is hidden; it will be always displayed.

    You should delete text controls and set labels to the Label property of the bound controls. Note that labels defined on table fields or the EDTs are used automatically, unless overriden.

    Also ensure yourself that ShowLabel is set to Yes.

    Open any form in AX and you'll see it uses this approach instead of separate controls just for labels.

  • Community Member Profile Picture
    on at

    Hi,

    thanks for you answer. Unfortunately the property above apply to AX 2012 and above.

    Do you know if this is possible in AX 2009 too?

    Thanks

    Federico

  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    No, that's not true. It was the same even in AX 3.0 ten years ago.

  • Community Member Profile Picture
    on at

    Hi,

    sorry yes you are right my bad. Looks the right way to go Thanks.

    You have been very helpful.

    Federico

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans