NextControl creates new line

Magno
Member Posts: 168
Hey,
i have a list form, but only 2 fields are editable in it.
So i set the nextcontrol of those 2 to each other.
so on the last field, it jumps to the next record. So far, so good.
But when it is on the last record. and on the last field, it creates a new line. but i only want them to create a new line when they explicitly say it. not when they press enter on the last field of the last record.
Anybody some ideas?
i have a list form, but only 2 fields are editable in it.
So i set the nextcontrol of those 2 to each other.
so on the last field, it jumps to the next record. So far, so good.
But when it is on the last record. and on the last field, it creates a new line. but i only want them to create a new line when they explicitly say it. not when they press enter on the last field of the last record.
Anybody some ideas?
0
Comments
-
A bit tricky...
:-k :idea:
Maybe you could delete the NextControl property and on the OnAfterInput trigger of the second control you could check if the next line is empty and then go to the first line.
Maybe something like:TempRec.COPY(Rec); TempRec.GET(....);//get the current rec... IF NOT TempRec.NEXT THEN IF Rec.FIND('-') THEN ;
I haven't tried it but it may help you...0 -
Doesn't look bad on the first look, but always asks if i want to rename the record.0
-
Yep, you are right.
#-o #-o
I tried a few expirements of my own but I couldn't find a solution.
I don't think I can come up with anything else...
Sorry Freightliner...0 -
Hi,
i did no test, but may be this helps:TempRec.COPY(Rec); TempRec.GET(....);//get the current rec... IF NOT TempRec.NEXT THEN IF Rec.FIND('-') THEN xRec.Copy(Rec);
br
Josef Metzbr
Josef Metz0 -
When there are only two fields editable and users are allowed to insert a new line, the key fields of the table are filled by filters or something like that, right? At least you know where to get the entry of the other fields (especially the key fields)? Then maybe this could work (didn't try it yet):
set the "InsertAllowed"-property to no. Then no new line will be inserted. Make a function with the shortcut F3, where you insert a new line. After inserting make a GET to the new record to be in the right line.
Actually this could work?!
Greetz
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0
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