Announcements
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.
Thankyou so much. This works perfectly. Exactly what I was looking for.
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.
but in my table there is no field of Currency value when I do CustTable.CurrencyValue it get error
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;
}
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.
what is your second field you want to fill based on currency lookup, is your second field is also lookup ?
can you please give Any examples how to code in modified method?
Hello Faisal,
DatasourceName.FieldName = your Conditional value;
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148