Next, Previous, First, Last Record buttons on Sales Order

Votuc
Member Posts: 206
I found a great blog on how to code the First, Next, Previous, and Last navigation buttons in the RTC here:
http://midynav.blogspot.com/2009/09/first-previous-next-and-last-buttons_03.html
The problem is when I put these into the Sales Order Page it brings up ALL listings in the Sales header on the Sales order Page (all quotes too).
How can I change this code to filter on sales orders only? I need a WHERE "Document Type" = Order
http://midynav.blogspot.com/2009/09/first-previous-next-and-last-buttons_03.html
The problem is when I put these into the Sales Order Page it brings up ALL listings in the Sales header on the Sales order Page (all quotes too).
How can I change this code to filter on sales orders only? I need a WHERE "Document Type" = Order
//NEXT Button RESET; SETFILTER("No.",'>%1',"No."); IF NOT FINDFIRST THEN BEGIN SETRANGE("No.",xRec."No."); IF FINDFIRST THEN; END;
0
Answers
-
Votuc wrote:The problem is when I put these into the Sales Order Page it brings up ALL listings in the Sales header on the Sales order Page (all quotes too).
How can I change this code to filter on sales orders only? I need a WHERE "Document Type" = Order
I didnt get tbis point.
Are you getting these icons in Quote pages or When you click next, Quotes are also showing in Order?
BTW, in which page you have modified?0 -
Hi,
I think in your case you might want to remove the RESET;
Or do a SETRANGE on the Document Type.Thomas Martin
NAV Developer0 -
thmartin wrote:Hi,
I think in your case you might want to remove the RESET;
Or do a SETRANGE on the Document Type.
removing the RESET worked for the "NEXT" button. Now I have another problem.
For the "FIRST" and "LAST" buttons I need to somehow filter on only sales orders//First Button RESET; IF FINDFIRST THEN SETRANGE("No.","No.");
RESET; IF FINDLAST THEN SETRANGE("No.","No.");
I am confused on how to do the SETRANGE to accomplish this. Would appreciate some examples. [-o<0 -
try this code
0 -
mohana_cse06 wrote:try this code
That works PERFECTLY! Thank you!! \:D/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