User in group

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


User in group (user; group) Boolean

ParameterTypeDescription
userStringUser name
groupStringGroup name
Function resultBooleanTRUE = user is in group
FALSE = user is not in group

Description

User in group returns TRUE if user is in group.

Example

The following example searches for specific invoices. If the current user is in the Executive group, he or she is allowed access to forms that display confidential information. If the user is not in the Executive group, a different form is displayed:

   QUERY([Invoices];[Invoices]Retail>100) 
   If (User in group(Current user;"Executive"))
      OUTPUT FORM([Invoices];"Executive Output") 
      INPUT FORM([Invoices];"Executive Input") 
   Else 
      OUTPUT FORM([Invoices];"Standard Output") 
      INPUT FORM([Invoices];"Standard Input") 
   End if 
   MODIFY SELECTION([Invoices];*)

See Also

Current user.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next