Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / TextChange method of t...
Finance forum

TextChange method of the form control in the extension does not work

(0) ShareShare
ReportReport
Posted on by 45

Good morning!

It is necessary to override the TextChange method on the form control. The form is LedgerJournalTransVendInvoice, the control is LedgerJournalTrans_Txt.

I made this class:

_21043D0438043C043E043A04_.JPG

Accordingly, 2 methods have been redefined in it - TextChange and Leave, and in order to understand what the system goes into them, added message output to them.

As a result, leave works fine, textChange - no

I tried the same on other controls and forms - the result is the same. What could be the problem? How can it be solved?

system: MS D365 FO, Update20 (7.0.5030.35333)

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: TextChange method of the form control in the extension does not work

    In your LCS project got to Support -> Support issues -> Submitted to Microsoft -> Submit an incident.

  • Oleg Resh Profile Picture
    45 on at
    RE: TextChange method of the form control in the extension does not work

    Yes, I implemented it that way. I just wanted to understand what the problem is and why I can't do it through textChange.

    Thank you, I will make a request in MS, but you can tell me how to do this?

  • Verified answer
    Mea_ Profile Picture
    60,278 on at
    RE: TextChange method of the form control in the extension does not work

    So if CoC for it does not work - log a bug. Meanwhile you need to workaround this somehow. Just put validation in place that would notify user that value is longer than 100 and on modify you can trim it back to 100.

  • Oleg Resh Profile Picture
    45 on at
    RE: TextChange method of the form control in the extension does not work

    I have a feeling that the extension to the TextChange method is not properly finalized :)

  • Oleg Resh Profile Picture
    45 on at
    RE: TextChange method of the form control in the extension does not work

    Can.

    But the task is a little different:

    Once user exceed 100 characters, system should either:

    a. Give a message that the limit of characters has been reached;

    b. Or block the entry of any additional text.

    Those. It is necessary at the time of entering the text, to restrict or warn the user.

    The whole point is that if you overlay the method, or do the same on the newly created form, everything works as it should.

  • Mea_ Profile Picture
    60,278 on at
    RE: TextChange method of the form control in the extension does not work

    Does LedgerJournalTrans_txt have datasource field behind it ? If yes you can wrap modifiedField method of the table. Or you can subscribe to events on the control or form datasource field. 

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,141 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,881 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans