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 :
Microsoft Dynamics AX (Archived)

Modified Field Method

(0) ShareShare
ReportReport
Posted on by

I have a form, contains: field A, field B, field C

field A is lookup value numberID, when I choose one of numberID in lookup field A, the value can automatically full-fill at field B and field C. Can you make example for the modified script?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    On the modified method of Field A, you can include following code

    public boolean modified()

    {

       boolean ret;

       ret = super();

       FormDataSource.FieldB = XYZ;

       FormDataSource.FieldC = XXX;

       return ret;

    }

    (Or)

    On the modifiedField method on the table, you can use following code

    public void modifiedField(FieldId _fieldId)

    {

       super(_fieldId);

       case fieldNum(Table, FieldA):

       this.FieldB = XYZ;

       this.FieldC = XXX;

    }

    Check modifiedField method of table SalesLine (for reference) for below cases.

    case fieldNum(SalesLine, LinePercent):

    case fieldNum(SalesLine, SalesPrice):

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans