Copy-paste entire cel from excel to Navision field

gjvk70
Member Posts: 60
We have some problems with copy-paste actions from excel to Navision. When I select a cel in excel and copy it (the cel, not the selected contents) to a field in Navision the cel contents will be pasted, but also two "line feeds".
This is not a big deal, I can see the line feeds as two squares and delete them. However we have a new workstation on which the squares are not visible and the user often forgets to delete the line-feeds...
Does anyone know what could cause the linefeeds to be invisible? I think it has something to do with the code pages.
Any help greatly appreciated.
Kind regards,
Gerard
This is not a big deal, I can see the line feeds as two squares and delete them. However we have a new workstation on which the squares are not visible and the user often forgets to delete the line-feeds...
Does anyone know what could cause the linefeeds to be invisible? I think it has something to do with the code pages.
Any help greatly appreciated.
Kind regards,
Gerard
Gerard van Kuijl - United - http://www.united4all.nl
0
Comments
-
You can try to delete the two characters in OnValidate trigger or in another trigger directly on the form where you are pasting the data.0
-
kine wrote:You can try to delete the two characters in OnValidate trigger or in another trigger directly on the form where you are pasting the data.
TheField := DELCHR(TheField,'<>');
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I have exactly the same problem. Did you ever find a solution to setup the workstation, so it would display the "squares"?[
Thanks,
Kaetchen0 -
Kaetchen wrote:I have exactly the same problem. Did you ever find a solution to setup the workstation, so it would display the "squares"?[
Thanks,
KaetchenRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Did you try the trick in my previous post?
No, because this is a general problem in every form.
I think it will relate to the Windows settings - maybe "fonts".
I have not much experience with C/AL Programming and although I change sometimes reports, forms and dataports I'm reluctant to make unnecessary changes in the standard objects.0 -
Every time you put a value into a field codeunit 1 is triggered.
Here you will find the different subfuntions Make?????. The parameter is always a text.
Add a subfunction ie. Clear_CR_LFParameters: Var Text Text 1024 MaxLenght Integer Local variables Char1 Char P Integer TextLength Integer TempText Text 250 TempText := ''; TextLength := STRLEN(Text); FOR P := 1 TO TextLength DO BEGIN Char1 := Text[P]; IF NOT (Char1 IN [1..31]) THEN TempText := TempText + FORMAT(Char1); END; IF STRLEN(TempText) > MaxLength THEN Text := COPYSTR(TempText,1,MaxLength); Text := DELCHR(TempText,'<>');
0 -
Hi,
Topic very interessant, but is it possible to make the same thing for code fields ?
There is no MakeCode in codeunit 1...
Thanks !0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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