Introduction
  • 23 Sep 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Introduction

  • Dark
    Light
  • PDF

Article Summary

Description

The user object provides direct communication with the user of your app's visual layout experience.


Properties

Below is a list of properties supported by this object.

NameDescriptionUWPWebAvatars
rolesReturns an array of all security roles the user belongs toYesYesNo
rolesAvailableReturns an array of all security roles supported by the runtimeYesYesNo
isPrepReturns whether or not the current user has the prep roleYesYesNo
isReaderReturns whether or not the current user has the reader roleYesYesNo

Functions

Below is a list of functions supported by this object.

NameDescriptionUWPWebAvatars
alertDisplays a popup message to the userYesYesNo
hasRoleReturns whether or not the user belongs to a specified security roleYesYesNo
blockIfEmptyBlocks the user from continuing if value(s) are missingYesYesNo
blockIfValueBlocks the user from continuing if a specific value is enteredYesYesNo
blockBlocks the user from continuing for a specified reasonYesYesNo
getCommentsReturns the user's comments for a page in your app's layoutYesYesNo
setCommentsSets or appends to the user's comments for a page in your app's layoutYesYesNo

Remarks

Use the alert function if you need to abruptly interrupt the user for some reason. They will not be able to continue until they recognize and dismiss your notification. This should be used cautiously.

The alert function is also a useful alternative to debug.log when building and testing your apps.


What's Next