Hiding lines on forms

marvinqvistmarvinqvist Member Posts: 53
Hi

On a sales order I want to hide all lines where Quantity equals Quantity Invoiced and Quantity is above 0 (if both are satisfied). But I'am not sure how to do this.

Have anyone got an answer or maybe some codelines which shows this. I thought of some kind of filter, but I am not sure how this will work on forms. - properly not like as it works on reports.

Looking forward to receiving som great answers.

Thanks!

Comments

  • marvinqvistmarvinqvist Member Posts: 53
    I solved it myself... it wasn't that hard at all.

    :)
  • tinoruijstinoruijs Member Posts: 1,226
    I solved it myself... it wasn't that hard at all.

    :)

    Great!
    How did you solve it?

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • marvinqvistmarvinqvist Member Posts: 53
    I just needed to clear my mind and think it through. It is straight forward. I just placed a filter on rec at the "Form - OnInit()". It catches the input from the source table.

    Don't know why I didn't think of that from the start.
  • garakgarak Member Posts: 3,263
    Note, if you hide some lines, you can become trouble.
    example.

    You have Line 10000, 20000 and 30000.
    Now you hide Line 20000, an user will now ad a new line betwenn the first line (10000) and, in his mind, line two (30000). What you are think will be come :?: Right, an errormessage, because the property Autosplitkey on the subform can not work :!:

    And what do you employees / customer, he is :evil:

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.