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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans