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)

How to get translation text of product name ?

(0) ShareShare
ReportReport
Posted on by 25

How to get translation text of product name from  InventTable record?

*This post is locked for comments

I have the same question (0)
  • Bilal Issa Profile Picture
    4,370 on at

    please use  InventTable::ProductName

  • meroglu Profile Picture
    25 on at

    This method is public, no static. I tried but it returned Original Product Name. I need translated name

    display EcoResProductName translatedOfProductName()

    {

       return InventTable::find(AGC_MCLInvoiceTemp.itemId).productName("en-us", AGC_MCLInvoiceTemp.inventDimId);

    }

  • Verified answer
    Bilal Issa Profile Picture
    4,370 on at

    you can use the following that read direct from product translation table.

    EcoResProductTranslation::findByProductLanguage(

                   _productRecId, LanguageId);

  • Suggested answer
    meroglu Profile Picture
    25 on at

    that's right. thanks Bilal

    display EcoResProductName translatedOfProductName()

    {

       InventTable inventTable;

    ;

       inventTable = InventTable::find(AGC_MCLInvoiceTemp.itemId);

       return EcoResProductTranslation::findByProductLanguage(inventTable.Product, "en-au").Name;

    }

  • Suggested answer
    meroglu Profile Picture
    25 on at

    that's right. thanks Bilal

    display EcoResProductName translatedOfProductName()

    {

      InventTable inventTable;

    ;

      inventTable = InventTable::find(AGC_MCLInvoiceTemp.itemId);

      return EcoResProductTranslation::findByProductLanguage(inventTable.Product, "en-au").Name;

    }

  • Bilal Issa Profile Picture
    4,370 on at

    thank you for your feedback, can you please verify my reply as answer .

  • Suggested answer
    Ivan (Vanya) Kashperuk Profile Picture
    on at

    Actually the original reply Bilal gave you seemed to be correct (more concise, at least)

    display EcoResProductName translatedOfProductName()
    {
      InventTable inventTable = InventTable::find(AGC_MCLInvoiceTemp.itemId);
    
      return inventTable.productName("en-au");
    //Note that you should ideally not hard-code the language, but look it up from some configuration table.
    }
    


  • ArunGarg Profile Picture
    3,926 on at

    Hi meroglu,

    Have you ever create Translations-button, form and functionality on a new simple list form in AX 2012?

     

    Regards

    Arun

    Translations-button, form and functionality must be added in order to give description in multiple languages

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