NEXT(-1) not working on page

thijshens
Member Posts: 15
Hi there,
I have this page where I have 4 action buttons:
First, Previous, Next and Last.
Code is as following:
FINDFIRST();
NEXT(-1);
NEXT();
FINDLAST();
Only thing is that NEXT(-1) is not working. When i press it, nothing is happening.
Anyone has a clue why, or ever seen this before?
Best regards,
Thijs
I have this page where I have 4 action buttons:
First, Previous, Next and Last.
Code is as following:
FINDFIRST();
NEXT(-1);
NEXT();
FINDLAST();
Only thing is that NEXT(-1) is not working. When i press it, nothing is happening.
Anyone has a clue why, or ever seen this before?
Best regards,
Thijs
0
Comments
-
Could it be that you are already on the first record?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Looks strange. Seems to be a bug in converting to C# for RTC/Service Tier.
A workaround could be to switch the sorting order.
For example:ASCENDING(FALSE); NEXT(1); ASCENDING(TRUE);
Greets
Egnaz0 -
Hello all,
instead I've used this code to solve this issuexRec := Rec; xRec.NEXT(-1); Rec := xRec;
0 -
After some additional testing I think it's not the -1 operator in C#. The record didn't get an update but I found no reason why.
Matteos solutions works as well but there is also a manual update of rec included.
So NEXT(1) updates the rec but NEXT(-1) misses the update.0 -
Thanks all for you respond.
We tried exact the same code in several pages, but all work fine.
We decided to notice this Issue to Microsoft, so we are awaiting their answer.
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