CurrentUser.SetProperty

  • 18 July 2022
  • 1 reply
  • 29 views

Userlevel 3
Badge +2

This article is about the SetProperty method of the CurrentUser internal component.

CurrentUser.SetProperty

In the runtime application, sets or resets, for the current user, an extension property defined for the User context. Such a property is defined in USoft Definer. Its value is set in USoft Authorizer.

This method updates the value in the Authorizer table immediately, using a separate transaction. If this is successful, the value as held internally is also updated.

Returns 'Y' if the operation was successful, otherwise 'N'.

Syntax

SELECT CurrentUser.SetProperty( property-name, property-value )

The required property-name is a string that is the name of the extension property. The required property-value is a string that is the new value.

Example

SELECT CurrentUser.SetProperty( 'email', 'new_address@user.com' )

 


1 reply

See for how to define properties: 

 

Reply