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 at form level AX 2012

(0) ShareShare
ReportReport
Posted on by 40

Hi, I`m new In AX,My Question is I have CustTable form in which a currency field is lookup and I want when i select currency it`ll automatically fill my second filed which is StringEdit  in the same form below currency field, I don`t know how to write override modified method? How to access the currency filed value and fill my second field. can any one please give me step by step info. 

*This post is locked for comments

  • HiteshAX Profile Picture
    52 on at
    RE: Modified Field Method at form level AX 2012

    Thankyou so much. This works perfectly. Exactly what I was looking for.

  • Agha SirajulDola Profile Picture
    555 on at
    RE: Modified Field Method at form level AX 2012

    Faisal -

    I have just elaborated how it should work, you better deal with micro details.

    if u wanna see which field is used on form level, right click on form field and personalize.

  • M.Faisal Asghar Profile Picture
    40 on at
    RE: Modified Field Method at form level AX 2012

    but in my table there is no field of Currency value when I do CustTable.CurrencyValue it get error

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at
    RE: Modified Field Method at form level AX 2012

    Create Modified method in Grid method of lookup Currency

    public boolean modified()

    {

       boolean ret;

       ret = super();

       CustTable.CurrencyValue       = CustTable.CurrencyCodeValue();

    This is form DS table name             Create new Method, that will probably return exchange rate based on currency u select

       CustTable_ds.reread();

       CustTable_ds.refresh();

       return ret;

    }

  • M.Faisal Asghar Profile Picture
    40 on at
    RE: Modified Field Method at form level AX 2012

    0714.Screenshot_5F00_5.png

    Currency_Currency is my first field which is look up, second field currency value which is not look up I just want when I select value in first field it display on second field automatically.

  • Agha SirajulDola Profile Picture
    555 on at
    RE: Modified Field Method at form level AX 2012

    what is your second field you want to fill based on currency lookup, is your second field is also lookup ?

  • M.Faisal Asghar Profile Picture
    40 on at
    RE: Modified Field Method at form level AX 2012

    can you please give Any examples how to code in modified method?

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at
    RE: Modified Field Method at form level AX 2012

    Hello Faisal,

    DatasourceName.FieldName   = your Conditional value;

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans