Related links
Sales & Asset management
Sales related services
Description of a part of the AM module - sales partFI - Finance Management
Framework Core functionality
- AyMINE Framework Server
- frmFrm – provided functionality
- System Rights
- System messaging
- AyMINE Business – Price calculation
- Strings and translations
- Export collection of objects
- AyMINE Framework management FAQ
- The AyMINE licence model
- AyMINE On-premise
- System events
- Mutli-client architecture
- Import collection of objects
- User sessions
- Default server methods
- Client-defined object attributes
- Common Libraries
Module - support for management
Libraries & Lincences
Mobile & Web Application
- Runtime debugging
- System console
- AyMINE Application
- In-line table edit support
- Object scripting API – object lang
- Application object structure
- Multilingual support
- View of a single object – detail
- Is using EVAL / feval method risky?
- Included library – String operations
- Cliplink
- Object API – object <g>
- API – Data object
- Object scripting API – object User
- Object view definition
- Framework support for Drag & Drop
- Common libraries
- Multiple-object update implementation
- fClip & fCliplist
- Offline persistent objects
- Mobile application
HR - Human Resources
System Management (part of framework)
Task, Project, Quality
Task & Task pattern
CMS - Content Management & Web API services
Front-End Scripting
Object USER - Documentation
Object is used under si name user. It is generally available so that it can be used anywhere in all methods
The evalUserObj
class provides various methods and properties to retrieve user-related information and perform checks regarding the user's roles, permissions, and settings in the system. Below is the full documentation of all available methods and properties.
Properties
number
Returns the user ID as a number. Be cautious about the type control; use == (not ===) to compare with values from the database.
number
Returns the sysUserID
of the logged-in user as a number.
number
Returns the sysClientID
as a number. Be cautious about conversions.
number
Returns an alternative name for the sysClientID
in case the script needs to distinguish between different values.
boolean
Returns true
if any debug mode is active. Be careful about using this, as a regular user might know how to start debug mode.
boolean
Returns whether the user has allowed notifications.
boolean
Returns true
if the user is logged into a public company, based on the system settings.
boolean
Returns true
if the user’s assigned computer is trusted (note that the concept of 'safe' is not yet fully implemented).
boolean
Returns true
if the user requests help links to be shown. This is primarily used in the primary menu.
string
Returns the name of the trusted device or undefined
if the device is not trusted.
boolean
Returns true
if the user has an active wallet.
string
Returns a comma-separated list of roles that the user has.
string
Returns the name of the client company the user is logged into.
string
Returns the preferred language set by the user for messages and translations.
string
Returns a string representing the user's description, typically the full name (surname + name).
string
Returns the description of the client, if available.
boolean
Returns true
if the user has a developer position.
boolean
Returns true
if the client is public, based on client settings.
boolean
Returns true
if the client is a test client (based on the client settings).
Methods
boolean
Checks if the user has the specified right(s). The rights are given as a list of strings in the format sys@sys1User.doSomething
.
boolean
Checks if the user has any of the specified roles. Takes one or more role IDs.
boolean
Checks if the user is active in any of the specified system processes. The processes are given as a list of shortcuts (e.g., ['SR', 'HR']
).
boolean
Checks if the user has access to the specified module.
boolean
Checks if the user has access to a specific option of a module (defined by the superadmin).
string
Returns the text value of a module option, defined by the superadmin in the module settings.
void
Loads user-related data, such as module attributes and dashboard settings.
evalUserObj
Initializes the evalUserObj
object and loads the initial data.
Static Methods
evalUserObj
Returns the singleton instance of the evalUserObj
class.