I've descovered a bug with filtergroups in NAV2009 R2.
When using filtergroups and copyfilters
function tofilter(var paramfilter)
FIlterline.FilterGROUP(9);//
filterline.copyfilters(paramfilter);
ExpressionLine.SETRANGE("PrimKeyField",ParamLine."PrimKeyField");
ExpressionLine.FILTERGROUP(0);
page.settableview(filteredline);
page.runmodal;
When the filterline.copyfilters(paramfilter) is used during group 9, the filters are placed in the filtergroup 0 and the user can remove them.
When the copyfilters function is not used, then it works as expected.
Could anybody confirm (or deny) this behaviour?
-it appears it's by design. A reformat of the code did the trick (assign the filters under filtergroup x before copying)
Answers