The use of MarkedOnly and Mark

sunnyksunnyk Member Posts: 280
Hi,
This query may annoy some people but actually i just want to know the use of marked only because this is something i am using for the first time(may be). In the planning worksheet Form i worte the following code at the On Push of one Menu Item.
ReservationEntry.RESET;
ReservationEntry.SETRANGE(ReservationEntry."Source Prod. Order Line","Line No.");
if ReservationEntry.FIND('-') then
  repeat
    if ReservationEntry2.GET(ReservationEntry."Entry No.",true) then
      if ReservationEntry2."Reservation Status" = (ReservationEntry2."Reservation Status"::trac) then
        if ReservationEntry2."Source Ref. No." <> 0 then
          if PlanningWorksheet.GET("Worksheet Template Name","Journal Batch Name",ReservationEntry2."Source Ref. No.") then
            PlanningWorksheet.MARK(true);
  until ReservationEntry.NEXT = 0;
PlanningWorksheet.MARKEDONLY(true);
SETRANGE("Line No.",PlanningWorksheet."Line No.");
PlanningWorksheet = Record Variable of Requisition Line.

Comments

  • BeliasBelias Member Posts: 2,998
    you will probably get your answer by yourself faster than someone elaborate an answer: press F1 in NAV and look for mark and markedonly functions, know what they do and search markedonly in mibuso to know what is the best use of it. (Or when it's better to not use it...)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.