Options

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

VotucVotuc Member Posts: 206
edited 2011-06-13 in NAV Three Tier
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
//NEXT Button
RESET;
SETFILTER("No.",'>%1',"No.");
IF NOT FINDFIRST THEN BEGIN
  SETRANGE("No.",xRec."No.");
  IF FINDFIRST THEN;
END;

Answers

Sign In or Register to comment.