Skip to main content

Notifications

Announcements

No record found.

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 73
 
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++
 
  • AR-16051714-0 Profile Picture
    AR-16051714-0 73 on at
    how to lock the Main Account field of the segmented entry on my form?
    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.
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    how to lock the Main Account field of the segmented entry on my form?
    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

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans