13. Oktober 2008 12:37
13. Oktober 2008 12:50
13. Oktober 2008 16:16
13. Oktober 2008 16:21
stony hat geschrieben:Wenn ich nun z.B. die Form 42 nehme. Wo müßte ich diesen Filter setzen. In welchen Trigger.
IF UserSetup.GET(USERID) THEN BEGIN
FILTERGROUP(2);
SETRANGE("Salesperson Code",UserSetup."Salesperson Code");
FILTERGROUP(0);
END;
13. Oktober 2008 21:58
15. Oktober 2008 07:22
15. Oktober 2008 08:24
15. Oktober 2008 09:48
MrBurns hat geschrieben:FILTERGROUP verhindert , dass der Anwender den Filter aufheben kann. Mit Filtergroup setzen, filtern und zurücksetzen wird der Filter vor dem Anwender versteckt.
C/SIDE Reference Guide hat geschrieben:[...]
0 (Std)
The default group where filters are placed when no other group has been selected explicitly. This group is used for filters that can be set from the filter dialogs by the end user.
This group is also used for the filtering action that is the result of the RunFormLink property on a form.
1 (Global)
Not used, but may be used in the future.
2 (Form)
Used for the filtering actions that result from the SETTABLEVIEW function; from the SourceTableView property; and from the DataItemTableView property.
3 (Exec)
Used for the filtering actions that result from the SubFormView and RunFormView properties.
4 (Link)
Used for the filtering actions that result from the DataItemLink and SubFormLink properties.
5 (Temp)
Not used, but may be used in the future.
6 (Security)
Used for applying security filters for user permissions.
[...]