Run a form with marked recs only?

code: testvar.Mark(TRUE); testvar.MARKEDONLY(); FORM.RUN(“TESTFORM”,testvar); If i mark some records on a var and then run a form on it, the form shows these recs correctly as marked. But it also shows all other recs. The user has to go to the menu to enable the mark filter. Is there a way to set this filter programatically? The only way to solve this problem, I can think of, is to extend the form with a function, which in turn maninpulates the internal form var. But I don’t like to manipulate a Navision form :frowning: .

Hi, you are missing one parameter: testvar.MARKEDONLY(TRUE); That should fix it.

I overlooked this![xx(] It works now.[:D] Thanks!