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)

using translate in Receipt POS ax2012r3

(1) ShareShare
ReportReport
Posted on by 2,050

Greeting 

hey i'm trying to use tow language (Arabic & English) for ITEM NAME on receipt for POS

i mean i need 2 line for Item Name on Receipt first line with Arabic language and other for English language 

*This post is locked for comments

I have the same question (0)
  • mohammed.mqi Profile Picture
    2,050 on at

    i'm using this way to translate now i want on my receipt Appear original language and Translated language  

    11111111.JPG

  • mohammed.mqi Profile Picture
    2,050 on at

    i'm still looking for add translated product name on Receipt for POS

  • mohammed.mqi Profile Picture
    2,050 on at

    looking for translate for [ITEM NAME] in receipt POS because i want [ITEM NAME] appear with tow language on receipt so i create new field on my design receipt but i don't know how bring other translate of [ITEM NAME] it's only appear one language

    so i flow this code to figure out where can i find that translate but i didn't reach to it so any idea about that please

    1488.1.PNG

  • Community Member Profile Picture
    on at

    Have you get any solution for this we also facing the same issue

  • Verified answer
    mohammed.mqi Profile Picture
    2,050 on at

    yes i create custom field then i linked with this code

    private string getTransltePRODUCTEnglish(string p)
            {
                string PRODUCTEnglish = String.Empty;
                string errormssage = String.Empty;
                try
                {
                    using (SqlCommand command = new SqlCommand())
                    {
                        command.Connection = connection;
                        command.CommandText = "SELECT * FROM ax.ECORESPRODUCTTRANSLATION WHERE PRODUCT =(SELECT [RECID] FROM ax.ECORESPRODUCT where DISPLAYPRODUCTNUMBER=@PRODUCT) and LANGUAGEID='en-us'";
                        command.Parameters.Add("@PRODUCT", SqlDbType.NVarChar).Value = p;
    
                        if (connection.State != ConnectionState.Open)
                        {
                            connection.Open();
                        }
    
                        using (System.Data.SqlClient.SqlDataAdapter adapter = new System.Data.SqlClient.SqlDataAdapter(command))
                        {
                            using (System.Data.DataTable table = new System.Data.DataTable())
                            {
                                adapter.Fill(table);
    
                                if (table.Rows.Count > 0)
                                {
                                    PRODUCTEnglish = table.Rows[0][3].ToString();
                                }
                                
                            }
                        }
                    }
    
                    return PRODUCTEnglish;
                }
                catch
                {
                    return errormssage = "connection faild arabic";
                }
            }


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