It looks like you're new here. Sign in or register to get started.
Alkro wrote: Is possible to disable filters in a Form. With code, i apply one filter and i want Users can't apply other filters only in this form. How?
ebsoft wrote: Alkro wrote: Is possible to disable filters in a Form. With code, i apply one filter and i want Users can't apply other filters only in this form. How? Simply... put a "RESET" on OnAfterGetRecord trigger of the form!
Form - OnFindRecord(Which : Text[1024]) : Boolean reset; //or setrange(NotAllowedFieldsToFilter); EXIT(FIND(Which));
Answers
Use FILTERGROUP.
FILTERGROUP(0) is standard user editable filter set.
FILTERGROUP(2) is used for forms
Check C/Side oniine help for more.
Example:
OnOpenForm:
FILTERGROUP(2);
// set your filter here
FILTERGROUP(0);
bostjanl
Whed I read your post for second time i realize, that I misread your post. :oops:
My first answer was how to prevent user to change your filter.
But you are asking, how to prevent user to use filters in general.
It is not nice, but you can use OnTimer and RESET ](*,)
Simply...
put a "RESET" on OnAfterGetRecord trigger of the form!
Federico
MBS Specialist since NAV 2.0
My experiences on Linkedin
Nice and simple =D>
thanks!!
Better, use the following source
Regards