web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to write code on modified of a segmented entry control?

(0) ShareShare
ReportReport
Posted on by 133

Hello all,

I have a requirement, according to which, I have to run some validations while changing the value of a segmented entry control, which is on Vendor payment journal, as shown in the image.VendPaymJour.png

I have been trying to write code on modified of the form control, modified of form data field, event handler of form control, validate method, but it isn't working.

I debugged the code each time, but the debugger isn't triggering.

Am I doing anything wrong? or is there any other way to write code on modified of the segmented entry control?

Thanks in advance,

Bhagyashree Dave

I have the same question (0)
  • bafrad Profile Picture
    40 on at
    RE: How to write code on modified of a segmented entry control?

    Hi Martin,

    What makes this specific control special?  This is a general question not related to wanting to put validation code here.  This control by itself has modified / lookup methods on the standard form.  What prevents us from using chain of command on the modified method of the control.  When debugging you will hit those methods on the form, just none of the chain of command calls.  

  • Bhagyashree Dave Profile Picture
    133 on at
    RE: How to write code on modified of a segmented entry control?

    Hi,

    Thanks for replying.

    I created extension of the controller class, and wrote my code in validate method, and it worked.

    Thanks again.

    Regards,

    Bhagyashree Dave

  • Verified answer
    Martin Dráb Profile Picture
    236,160 Most Valuable Professional on at
    RE: How to write code on modified of a segmented entry control?

    The behavior is driven by the controller class, e.g. LedgerDimensionAccountController.

    You can either utilize or extend existing capabilities, or you can create create a custom, specialized controller (and override validateCombination(), for example).

    By the way, putting validation to OnModified would be wrong even for normal controls - validation needs to be done before modification.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,370

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 675 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans