Skip to main content
Version: Next

Refresh license

Refresh license : Object

ParameterTypeDescription
Function resultObjectStatus object

Description

The Refresh license command updates the current 4D Server license. It connects you to the 4D customer database and automatically activates any new or updated licenses (e.g., additional purchased clients) related to the current license.

Returned object

The object returned by Refresh license contains the following properties:

PropertyTypeDescription
successbooleanTrue if the refresh action is successful, False otherwise.
statusnumberStatus code
statusTexttextStatus description
tipstextSuggestions to resolve error.

Note: This command can only be executed on 4D Server. If the method calling the command is executed locally on a remote client or in 4D single user, Refresh license does nothing.

Example

You want to update your license and receive a message when it's completed:

  // Method to be executed on server
 var $res : Object
 $res:=Refresh license
 If($res.success)
    ALERT("Success")
 Else
    ALERT($res.statusText)
 End if

Properties

Command number1336
Thread safe