Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

adding new column into accounts receivables price/discount agreement journal lines form

Posted on by 735

Dears,

Please note that I need to add the item name next to the item code(item relation) in the grid of the accounts receivables price/discount agreement journal lines form in AX 2012 R3

anyone can help?

Regards

ER

*This post is locked for comments

  • E. R. Profile Picture
    E. R. 735 on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Dears,

    I used this code and linked it to the form as per the below screenshot but the return is not working properly. can anyone help?

    Display Name GetItemMethod()
    {
    EcoResProduct Product;
    EcoResProductTranslation ProductN;


    Select Name from ProductN
    where Product.recid==ProductN.product;
    return ProductN.Name;
    }

    0525.result.jpg

  • Verified answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Hello ER,

    The modification (display method) that Rohin and Suresh mentioned will help you identifying the name but won't allow you to sort or filter.

    If this is enough for you then go ahead and ask a developer to implement this in a demo/test environment so that you can have a look at it.

    Best regards,

    Ludwig

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Hi Elie,

    Please write a display method for Itemname, refer Salesline Table > Methods > Itemname(). The same way try writing the display method to get the item name in your required form.

  • Suggested answer
    Rohin Profile Picture
    Rohin 4,624 on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Hi Eile,

     adding display method for ItemName will do your job but remember it won't allow you to make filter on ItemName. You'll get plenty of examples for how to add display methods in D365FO on internet with quick search. 

  • E. R. Profile Picture
    E. R. 735 on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Thank you Ludwig for your reply. the user memorized the item name instead of the item code, also the search name field is used for another purpose. is there any link that may help in doing this customization?

    Regards,

    ER

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: adding new column into accounts receivables price/discount agreement journal lines form

    Hello ER,

    This cannot be achieved by a personalization but requires a customization.

    Before making this personalization, I would question the requirement / added value of such a customization because you can see the search name of the item in the item relation drop down.

    Best regards,

    Ludwig

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans