Save MARKEDONLY

jensthomsenjensthomsen Member Posts: 173
Hi
I have marked some records in a table from C/AL code, and showing them in a form via MARKEDONLY. I want the user to see only the marked records. Therefore: Are there any (nice!) ways of preventing the user from "show all" records on the form (=> if you use MARKEDONLY(TRUE) the user can just choose to 'Show all' and thereby ignoring the MARKS!). One solution would be, to put MARKEDONLY(TRUE) in the form trigger OnTimer and set the timerinterval to some value - thisn't very nice!
...???
Jens

Comments

  • bbrownbbrown Member Posts: 3,268
    Use a FilterGroup.
    There are no bugs - only undocumented features.
  • jensthomsenjensthomsen Member Posts: 173
    bbrown wrote:
    Use a FilterGroup.

    No - doesn't work:-( But placing MARKEDONLY(TRUE) on form trigger OnAfterGetCurrRec does the trick!
  • krikikriki Member, Moderator Posts: 9,110
    A better way would be to save the records in a temptable and then run the form with the temptable. This way they may try to remove the marks/filters....

    The negative is tat if they can change the records, you need to write some code for doing that.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.