Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Modified Field Method at form level AX 2012

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
    HiteshAX 50 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
    Agha SirajulDola 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
    M.Faisal Asghar 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
    Agha SirajulDola 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
    M.Faisal Asghar 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
    Agha SirajulDola 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
    M.Faisal Asghar 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
    Agha SirajulDola 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans