Cursor to remain on same line

HenningTh
Member Posts: 59
Hi all
I feel a little off the beat here - have tried a lot of code but cannot make it work properly.
Case:
Have a tubular form with some lines - when pressing a button calling another form - doing some stuff there - then returning by closing the latter form. The cursor insist on placing it self on the last line in the form when returning.
I just have to make it stand on the line where "I left it when calling the other form".
Anyone having a good code example as I have tried a lot og things without any sucess. Have also tried to search in here and other places.
Thnaks in advance
I feel a little off the beat here - have tried a lot of code but cannot make it work properly.
Case:
Have a tubular form with some lines - when pressing a button calling another form - doing some stuff there - then returning by closing the latter form. The cursor insist on placing it self on the last line in the form when returning.
I just have to make it stand on the line where "I left it when calling the other form".
Anyone having a good code example as I have tried a lot og things without any sucess. Have also tried to search in here and other places.
Thnaks in advance
0
Comments
-
it all depends on what you do in that function..maybe you do a findlast before calling the form, or maybe you pass Rec of the first form with the "var" flag in some function and you do a findlast in that function...0
-
Belias wrote:it all depends on what you do in that function..maybe you do a findlast before calling the form, or maybe you pass Rec of the first form with the "var" flag in some function and you do a findlast in that function...
Hi Belias
Thanks for replying - The problem is that it always positions itself on the last line when returning from the other form.
I have a form with - say 45 lines - and standing on line 23 when calling the other form. When I return the cursor position is line 45, not 23. The challenge is to have it to position itself to line 23 (users cannot always remember which case they were about to deal with).0 -
You most likely have too much code going on
Have a look at how the dimensions are called from sales order subform.Don't just take my word for it, test it yourself0
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