4D v14.3User in group |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
User in group
|
User in group ( user ; group ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
user | String |
![]() |
User name | |||||
group | String |
![]() |
Group name | |||||
Function result | Boolean |
![]() |
TRUE = user is in group FALSE = user is not in group | |||||
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"))
FORM SET OUTPUT([Invoices];"Executive Output")
FORM SET INPUT([Invoices];"Executive Input")
Else
FORM SET OUTPUT([Invoices];"Standard Output")
FORM SET INPUT([Invoices];"Standard Input")
End if
MODIFY SELECTION([Invoices];*)
Product: 4D
Theme: Users and Groups
Number:
338
Created: < 4D v6
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)
Inherited from : User in group ( 4D v11 SQL Release 6)