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++
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.
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.