Chapter Contents

Previous

Next
Organizational Chart: _setClass

Organizational Chart: _setClass



Creates a new node type by assigning either a predefined or user-defined class to a node type number


Syntax
Example

Syntax

CALL NOTIFY (orgchart-name, '_setClass', class, nodetype);

Argument Type Description
class
C specifies the four-level name of a class. This class can be a subclass of one of the three predefined organizational chart classes or a user-defined widget class.
nodetype
N specifies the index of the node type. This number must be greater than 3 because the first three node types are predefined, and it must be equal to or less than 1 plus the number of node types. If it is 1 greater than the number of node types, a new node type is created.


Example

Because there are three predefined node types, any new ones that you wish to create must start at 4. After this example is run, all newly created objects will be node type 4 and class SASUSER.OBS.MYCLASS.CLASS, unless overridden:

call notify('org1','_set_class_',
            'sasuser.obs.myclass.class',4);
call notify('org1','_set_option_',
            'default_type',4);


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.