How to avoid Special char in NAV?
chandrurec
Member Posts: 560
Hi all,
When I copy the values from excel to a text bos in NAV, the expty spaces is coming in the form of boxes, is there any property or coding to avoid this .
Thanks in advance.
Regards,
Chandru.
When I copy the values from excel to a text bos in NAV, the expty spaces is coming in the form of boxes, is there any property or coding to avoid this .
Thanks in advance.
Regards,
Chandru.
0
Comments
-
Same question here:
viewtopic.php?f=23&t=328050 -
One way would be to strip out the Carriage Return and Line Feed (Char 10 and 13) from the text. Can be done globally for Text fields in the Application Management (CU1) MakeText function I would assume. Beware, this function is called whenever text is entered into a text field.
This is where you get the standard functionality of using a ? to get the Standard Text pop-up.
Otherwise, you would have to make your own function and call it onvalidate of fields, which would be a lot of repetitive code.-Lavin
"Profanity is the one language all programmers know best."0 -
Are we talking copy/paste or import?0
-
Hi,
I am copying a cell from excel and pasting it in NAV Text field at that time I am getting 2 boxess getting appended to this string.
Kindly tell me how to avoid this.
Regards,
Chandru.0 -
By copying only the text not the whole cell or by deleting them manually in NAV...0
-
0
-
Hi Savatage,
I have given the coding like this in the Posting No field On Validate trigger
CHAR10 := 10;
CHAR13 := 13;
POS := STRPOS("Posting No.", FORMAT(CHAR10));
IF POS <> 0 THEN ERROR('Pasting Canceled Carrage Return Exists');
POS := STRPOS("Posting No.", FORMAT(CHAR13));
IF POS <> 0 THEN ERROR('Pasting Canceled Line Feed Exists');
is CHAR 10 and CHAR 13 are integer datatype ?
but still when i copy the cell from excel to nav the boxes are getting appended to the string .
Kindly give me a soluion to avoid this
Thanks & Regards,
Chandru0 -
Yes, there is a solution. Use the Search, Luke!
http://lmsmfy.com/?q=Carriage%20Return and read the forum entry "Hidden Characters (Carriage Return and Line Feed)"Frank Dickschat
FD Consulting0 -
Yes that code just tells you there are "special chars" and doesn't let you enter them.
It's more of a notification to the user to go & edit the string by removing these chars before continuing.
The post also has a solution you put in CU1.
You can also try copying the value from the function bar Fx instead of the cell.
Ps why would you be pasting into the "Posting No." field to begin with?0 -
Savatage wrote:
Haha, sorry Harry, thought you were mentioning that it was a double post... I saw it was then came into this one and replied a suggestion lol.
-Kevin-Lavin
"Profanity is the one language all programmers know best."0 -
No sorry needed , I was actually replying to the 5 or 6th post where it was asked again how to do it.0
-
Hi Savatage,
I got the output. Thank you so much.
Regards,
Chandru.0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions