Allows to determine the restrictiones by entity assigned to the user in the database to which is connected.
1 system.user.getRoleSQLEntity
<system.user.getRoleSQLEntity code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | Allows to indicate a table of the system. |
Returns | |
---|---|
Type | Description |
string | If the attribute code is informed, returns the restriction which is on this table. If not returns the role code. |
Example
Visualize the role code and the sql restriction which is on the capuntes object.
Copy
<xsql-script> <body> <println> <system.user.getRoleSQLEntity/> </println> <println> <system.user.getRoleSQLEntity code='capuntes' /> </println> </body> </xsql-script>