mouse wheel causes line insert ?

rixrix
Member Posts: 121
Hello.
Can anyone help me with this?
I have several textboxes for getting some parameters and one table box.
The table linked to form is set as Temporary.
When I put cursor into any of the textboxes and Use mouse wheel , it tries to insert new line into the table.
(I see as new line appears in tablebox and then system throws error because the primary key (0) already exists in the table)
What the hell has the scrolling wheel to do with inserting lines ?
Tablebox and it's columns are set as NON editable
When I put cursor in the tablebox and do the wheel scroll, nothing happen ... (which is ok)
Can you help me please?
P.S. I have it in RequestOptionsForm
Can anyone help me with this?
I have several textboxes for getting some parameters and one table box.
The table linked to form is set as Temporary.
When I put cursor into any of the textboxes and Use mouse wheel , it tries to insert new line into the table.
(I see as new line appears in tablebox and then system throws error because the primary key (0) already exists in the table)
What the hell has the scrolling wheel to do with inserting lines ?
Tablebox and it's columns are set as NON editable
When I put cursor in the tablebox and do the wheel scroll, nothing happen ... (which is ok)
Can you help me please?
P.S. I have it in RequestOptionsForm
0
Comments
-
Set the property InsertAllowed to No.
Salut!Laura Nicolàs
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.0 -
wow, it worked
Thank you very much.
But Is that normal that rolling nmouse wheel inserts lines even if I stay on different controls?0 -
Yes, it is normal.
In Navision you can create a new line by putting the cursor under the last line. Mouse wheel moves the cursor and can put it under the last line... so you are creating a new line!
Salut!Laura Nicolàs
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.0 -
another thing to take note of is that in Windows, the default setting for the scrollwheel is to go up or down 3 lines at a time ( configurable in the control panel ), so you might think you are going down one line, but in reality it's three.0
-
But I stay with cursor in totally different controls (textbox)... not in the grid's textboxes.
And when scrolling, the cursor stays in textbox .....
Byt lines were adding in tablebox ... so that 's why I felt confused0 -
Mouse wheel works just has the arrow does.
Try to put the cursor somewhere in any header. Then press the down arrow a few times and see what happens. The same occurs with the wheel.
Salut!Laura Nicolàs
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.0 -
ok, I surrender :-)
Thank you all very much again ...
+ I have one other strange problem
But it is probably because of doing things which are not supposed to do ....
I put TabControl into the RequestOptionsForm
In TabControl I have several tabs with TableBox in one of them. On the aother tabs are just textboxes
Everything goes ok, I can compile it, run it .. it works.
But I am not able to go back into the designer of RequestForm.
The NAV just Crashes (Sometimes I can run it, but when exiting NAV also crashes)
I think it can be because RequestOptionsForm is already in the tab .... but i am not sure ....
I do not see som normal reason for it.
Thank You0
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