Hi,
I've got a page with a subform in it where I need to pass custom filters, rather than using the SubPageLink property on the page.
However, when inside the subform, I don't see any filter set on Rec variable so the subform just shows all comments found in the table it is linked to.
OrderComment.SETRANGE("Contract No.","No.");
OrderComment.SETFILTER("Change Order No.","Change Order No.");
CurrPage.CommentsSubForm.PAGE.SETTABLEVIEW(OrderComment);
CurrPage.CommentsSubForm.PAGE.UPDATE;
OrderComment is a global variable, not temporary one
It works well under Nav2013R2 but not in 2016
I've got a page with a subform in it where I need to pass custom filters, rather than using the SubPageLink property on the page.
However, when inside the subform, I don't see any filter set on Rec variable so the subform just shows all comments found in the table it is linked to.
OrderComment.SETRANGE("Contract No.","No.");
OrderComment.SETFILTER("Change Order No.","Change Order No.");
CurrPage.CommentsSubForm.PAGE.SETTABLEVIEW(OrderComment);
CurrPage.CommentsSubForm.PAGE.UPDATE;
OrderComment is a global variable, not temporary one
It works well under Nav2013R2 but not in 2016