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 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

I have the same question (0)
  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at

    Hello Faisal,

    DatasourceName.FieldName   = your Conditional value;

  • M.Faisal Asghar Profile Picture
    40 on at

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

  • Agha SirajulDola Profile Picture
    555 on at

    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

    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.

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at

    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

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

  • Agha SirajulDola Profile Picture
    555 on at

    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.

  • HiteshAX Profile Picture
    52 on at

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

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