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 :
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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 517 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 440

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans