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
Hi,
sorry yes you are right my bad. Looks the right way to go Thanks.
You have been very helpful.
Federico
No, that's not true. It was the same even in AX 3.0 ten years ago.
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
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.
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
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?
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
Mohamed Amine Mahmoudi
100
Super User 2025 Season 1
Community Member
48
Zain Mehmood
6
Moderator