Obtains the printer group to which belows the indicated user.
1 system.user.getPrinterGroup
<system.user.getPrinterGroup code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | Printer group to which belows the user. |
Example
Obtains the printer group to which belows the user which executes the action.
Copy
<xsql-script name='system_user_getPrinterGroup_sample1'> <body> <println> <system.user.getPrinterGroup/> </println> </body> </xsql-script>
If you do not pass the user code via the attribute code, the system returns the value related with the user which executes the command.
Example
Obtains the printer group of a specific user.
Copy
<xsql-script name='system_user_getPrinterGroup_sample2'> <body> <println> <system.user.getPrinterGroup code='jet'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.