Skip to main content

Notifications

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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: Modified Field Method

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 232,938 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans