According to the online help the FILTERGROUP(2) shoud contain the SourceTableView property
2 Form Used for the filtering actions that result from the SETTABLEVIEW function; from the SourceTableView property; and from the DataItemTableView property.
According to the online help the FILTERGROUP(2) shoud contain the SourceTableView property
2 Form Used for the filtering actions that result from the SETTABLEVIEW function; from the SourceTableView property; and from the DataItemTableView property.
:oops: Didn't read the post well. I didn't see the "View" in "SourceTableView" :oops: :oops:
Mark is right, changing filtergroups, you can change the filters in it.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
thanx,
but to be more specific, how to set filter on OnActivateForm() on the table and how to disable the button "show all" from the toolbar which resets filters that are set in the code?
To achieve this you can add code to the OnOpenForm trigger and use the FILTERGROUP to hide the filters from the users.
Meaning:
FILTERGROUP(6); // the filtergroups lower than 6 are reserved for Navision
SETRANGE(.... // put your filters, the user may not see or change
FILTERGROUP(0); // filtergroup 0 is the group in which the user can play
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Mark is right, changing filtergroups, you can change the filters in it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
but to be more specific, how to set filter on OnActivateForm() on the table and how to disable the button "show all" from the toolbar which resets filters that are set in the code?
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks for the help