6.1.3 Accessing SRPrincipal in Script

You can access the SRPrincipal object within VPM trigger scripts and report scripts (in the onLoad and onInit handlers, or in element-level script).

var p = parameter['__principal__'];

 

// getting a custom property:

p.getProperty("property_name");

 

// Getting a common SRPrincipal property (user locale):

p.getLocale();

See Also

parameter.__principle__, in Dashboard Scripting, for information Viewsheet access.

Dashboard Scripting, for information on adding Viewsheet scripts.

Report Scripting, for information on adding report scripts.

Accessing SRPrincipal via Login Listener, for information on adding custom properties.

Trigger Scripts, in Data Modeling, for information on VPM scripts.

<< 6.1.2 Accessing SRPrincipal via Login Listener © 1996-2013 InetSoft Technology Corporation (v11.4) 6.2 SRPrincipal Properties >>