BIRT Data Analyzer API classes : Class actuate.xtabanalyzer.LevelAttribute

Class actuate.xtabanalyzer.LevelAttribute

Description

The LevelAttribute defines an attribute for a level.

Constructor

Syntax

actuate.xtabanalyzer.LevelAttribute( )
Creates a cross tab level attribute object.

Function summary

Table 5-12 lists actuate.xtabanalyzer.LevelAttribute functions.

actuate.xtabanalyzer.LevelAttribute.getName

Syntax  

string LevelAttribute.getName( )

Returns the level attribute name.

Returns

String.

Example

This example retrieves the level attribute name and stores it in a variable attname.

var attname = levelattribute.getName( );

actuate.xtabanalyzer.LevelAttribute.setName

Syntax  

void LevelAttribute.setName(string attributeName)

Sets the level attribute name.

Parameters  

attributeName

String. The level attribute name.

Example

This example sets a name for newly created level attribute and assigns the attribute to a level.

var attribute = new actuate.xtabanalyzer.LevelAttribute( );
attribute.setName("pounds");
level.addLevelAttribute( attribute );

(c) Copyright Actuate Corporation 2011