Exporting multiplication sign in dynamics nav
rnjbng
Member Posts: 82
Hih Folks -
One of customer has a item description as SS MAT 140 TERRY PRO 18 WHT 39 × 80 where x is a actual multiplication sign and not X from the keyboard. When I create a simple dataport and export the description it comes as "SS MAT 140 TERRY PRO 18 WHT 39 í 80" where x is substituted with strange character.
Is there any way to get the actual multiplication sign to show on notepad. I know that Alt+0215 on notepad will give me the multiplication sign but I am not sure how to program the Alt+0215 in NAV.
Any help is highly appreciated.
Thanks
RJ.
One of customer has a item description as SS MAT 140 TERRY PRO 18 WHT 39 × 80 where x is a actual multiplication sign and not X from the keyboard. When I create a simple dataport and export the description it comes as "SS MAT 140 TERRY PRO 18 WHT 39 í 80" where x is substituted with strange character.
Is there any way to get the actual multiplication sign to show on notepad. I know that Alt+0215 on notepad will give me the multiplication sign but I am not sure how to program the Alt+0215 in NAV.
Any help is highly appreciated.
Thanks
RJ.
0
Answers
-
Hello @mjbng
You could use the function NAV2Win in this codeunit to change the text value of your field before export with the dataport.OBJECT Codeunit 50003 Import/Export functions { OBJECT-PROPERTIES { Date=10/25/19; Time=04:47:49 PM; Modified=Yes; Version List=; } PROPERTIES { OnRun=BEGIN END; } CODE { VAR NAV@1000000001 : TextConst 'ENU="€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ "'; WIN@1000000000 : TextConst 'ENU=ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»€‚„…ÁÂÀ©†‡ˆ‰¢¥Š‹ŒŽãÑ’“”•–—¤ðÐÊËȘÍÎÏ™š›œ¦ÌÓßÔÒõÕµþÞÚÛÙýݯ´±ž¾¶§÷¸°¨·¹³²Ÿ '; PROCEDURE Win2NAV@1000000009(_Text@1000000000 : Text[250]) : Text[250]; BEGIN //To import data from Windows to Navision EXIT(CONVERTSTR(_Text, WIN, NAV)); END; PROCEDURE NAV2Win@1000000011(_Text@1000000000 : Text[250]) : Text[250]; BEGIN // To export data form Navision to Windows EXIT(CONVERTSTR(_Text, NAV, WIN)); END; BEGIN END. } }
Regards0 -
It's a pretty good code but unfortunately when the multiplication sign goes to Notepad it just puts í sign using the above function.0
-
Hello @mjbng,
I tested the code before posted and works in my computer.
I write the symbol in a customer name:
Exported with a dataport without using the function:
Exported using the function:
And I get the right symbol:
Maybe is a issue with the code page of your computer that is not the same than mine.
Regards
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
