Filtergroup bug in NAV2009 with copyfilters

SogSog Member Posts: 1,023
edited 2013-08-30 in NAV Three Tier
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)
|Pressing F1 is so much faster than opening your browser|
|To-Increase|

Answers

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Hmm... I thought it's quite normal that the filter is copied to the filtergroup it initially was applied to. :?
    "Money is likewise the greatest chance and the greatest scourge of mankind."
Sign In or Register to comment.