Next/Previous not working

Steve_Contris
Member Posts: 114
All of a sudden the next and previous menu buttons no longer work when using the Orders form 42. First and last work. Searching works. Also, if you pull up the Orders list, the next and previous work fine there - so not likely a problem with the table keys and changing the sort does not help. I restarted the Nav service - no better after that. There are no filters and the TableView properties of the form look fine. So, no matter what order record I am currently on, previous button does nothing, next button starts a new record. One exception - deleting the current record takes you to the next record. Any ideas?
What would Elvis do?
0
Comments
-
I can recommend turning on the debugger and check what happens when you click these buttons.Ufuk Asci
Pargesoft0 -
All of a sudden the next and previous menu buttons no longer work when using the Orders form 42.
what is NAV Version ?
is it not working in both classic or RTC ?Regards,
S.V.Sudhakar0 -
-
jubeljoyAnybody changes the Roles and permissions of particular users
are you trying to ask,how to assign roles & permission to particular user ?
Create role and assign permissions
open NAV Tools-->Security-->login id-->Roles
Synchronize login.Regards,
S.V.Sudhakar0 -
You probably have local variables in Form - OnNextRecord. When you delete them it should work just fine.
Regards
PBA0 -
ufuk wrote:I can recommend turning on the debugger and check what happens when you click these buttons.
I have tried debugging and the debugger does not allow access at the point of grabbing the next record even with breakpoints on triggers. The debugger picks up at the point at which it is already on the wrong record or creating a new one depending on whether next or previous is used.What would Elvis do?0 -
VanDogh wrote:You probably have local variables in Form - OnNextRecord. When you delete them it should work just fine.
Regards
PBA
At the point the debugger gets to OnNextRecord it is already on the wrong record. Also, I have tried removing all code and variables there.What would Elvis do?0 -
sudhakarsv wrote:All of a sudden the next and previous menu buttons no longer work when using the Orders form 42.
what is NAV Version ?
is it not working in both classic or RTC ?
Version is 2009. This problem only exists in the classic client.What would Elvis do?0 -
Have you tried this in a standard database?Ufuk Asci
Pargesoft0 -
I would be very interested if the solution to this was found. Although the cause my be very different we are just experiencing the same issue on the sales form since recently. Though no change in code has occured, or any setup that should be relevant. There is also no variables or code in the onaftergetrecord trigger.
best
Bruce Anderson0 -
Steve Contris wrote:At the point the debugger gets to OnNextRecord it is already on the wrong record. Also, I have tried removing all code and variables there.
Try again because thats the reason why it's not working. You can't have any code and any (yours) variables in trigger OnNextRecord because this means that you want to handle OnNextRecord manualy. Also clear code in those triggers if you have two or more empty lines also delete them. Do not delete Steps variable - it is standard variable.
Regards
PBA0 -
VanDogh wrote:Steve Contris wrote:At the point the debugger gets to OnNextRecord it is already on the wrong record. Also, I have tried removing all code and variables there.
Try again because thats the reason why it's not working. You can't have any code and any (yours) variables in trigger OnNextRecord because this means that you want to handle OnNextRecord manualy. Also clear code in those triggers if you have two or more empty lines also delete them. Do not delete Steps variable - it is standard variable.
Regards
PBA
I have plenty of forms with code in the OnNextRecord that work just fine- that was definitely not the problem. I had removed all that code and the variables anyway.
In the end, it turned out to be a corrupted form. I have NEVER seen this happen in the older version but somehow this form was damaged and there was no indication of anything wrong. Comparing text export to a fresh copy showed nothing wrong but when I replaced the form with the fresh copy the problem went away even after re-applying my customizations.What would Elvis do?0 -
This is very strange, but my issue is resolved too (sorry for hacking the thread). I went back to a version of the form before my changes, then put them back in exactly in the same way, and the issue was solved. I had nothing in onaftergetrecord. A form corrupting virus going round? :?: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