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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

how to lock the Main Account field of the segmented entry on my form?

(2) ShareShare
ReportReport
Posted on by 81
 
Hello everyone,
 
I would need to make a customization in the accounting distribution form. The issue is that sometimes users, while distributing amounts, can modify the main account. The idea is to lock only the 'Main account' field so that it cannot be edited. I've reviewed forums and found similar questions, but they lacked relevant answers. I've come across suggestions, such as using 'parmLockMainAccountSegment', but I can't seem to lock the field as it remains available for editing.
 
Clarification: I understand that this adjustment should be made through X++
 
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    You can refer to this blog: alexdmeyer.com. This article first introduces how to hide fields from the UI page, and then introduces how to modify the fields to be read-only and not editable. This can be done through AOT, which is the method introduced in this article. Of course, it can also be done through the user interface, which is mentioned in the comment area of the article, by adding a reference to the table first and then adding the access to the table fields.
    Best regards,
    Kevin
  • AR-16051714-0 Profile Picture
    81 on at
    Thank you for your response, Kevin Xia. Unfortunately, that solution doesn't fit the requirements of the request, as this case should only apply to purchase agreements and purchase orders. I would need to be able to lock the field programmatically since the form displayed in the grid where the Main Account field is visible is a dynamically created form.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 692 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 558 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 364 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans