Marked Fields.. help!

BeckaBecka Member Posts: 178
Hi all :mrgreen:

So, I need to make kinda operations on fields from code.. So I need to view only marked fields.. If any ideas just help me..
:roll:

10x all :mrgreen:
MCSD
Attain Navision

Answers

  • BeliasBelias Member Posts: 2,998
    you can see these functions in NAV help:
    markedonly, mark, clearmarks
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeckaBecka Member Posts: 178
    yup, i know where to find it, but how to use it for view marked only reason?
    MCSD
    Attain Navision
  • tinoruijstinoruijs Member Posts: 1,226
    In the C/AL Symbol Menu you'll find in the second column Mark with a couple of functions.
    If you select a function you can press F1 and you'll see a good help-file.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • BeliasBelias Member Posts: 2,998
    ???
    i don't understand...so i will tell you everything comes in my head about marks...
    USER'S SIDE: you can put marks pressing CTRL+F1, then click on view, marked only to see only the marked fields.
    DEVELOPER'S SIDE: use myrec.MARK(true) on a rec to do the same as CTRL+F1...then use myrec.MARKEDONLY(true) to see (and filter) only the marked records.
    CLEARMARKS, RESET and CLEAR used with myrec, will toggle the marks

    Am I missing something?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeckaBecka Member Posts: 178
    Hi Tino..
    I know that, I saw the help file, but nothin' useful.. All I need is, to view marked fields in my code.. So if any1 of you have such an experience, or any kinda ideas 'bout how to work this out, just help me..
    MCSD
    Attain Navision
  • BeliasBelias Member Posts: 2,998
    well, well...maybe there is a misunderstanding...you really intend to view marked FIELDS??not RECORDS??
    if you are saying fields, what do you mean for "marked fields"?

    if you mean records, you have to mark rows in the table one by one, e.g. put myrec.mark(true) in a "repeat until next=0"loop or in an onaftergetrecord trigger.
    then use myrec.markedonly(true) instruction which retrieves only marked fields
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • TomasTomas Member Posts: 420
    Becka,

    basically... somewhere in the loop when you conditions are met, you do:
    ...
    YourTable.MARK(TRUE);
    ...
    

    Then, when you want to work only with MARKEDONLY, you apply any other filters and you go for:
    YourTable.MARKEDONLY(TRUE);
    
Sign In or Register to comment.