User.roleCenter

Property Description

The string value of the center type, or role center, for the current user.

The NetSuite UI adjusts automatically to different users' business needs. For each user, NetSuite displays a variable set of tabbed pages, called a center, based on the user's assigned role. Each NetSuite center provides, for users with related roles, the pages and links they need to do their jobs.

For more information about NetSuite centers, see Centers Overview.

Type

string (read-only)

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/runtime Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/runtime Module Script Samples.

          // Add additional code 
...
var userObj = runtime.getCurrentUser();
log.debug('String value of current user center type (role center): ' + userObj.roleCenter);
...
// Add additional code 

        

Related Topics

General Notices