Chapter Contents

Previous

Next
Organizational Chart: _getLevel

Organizational Chart: _getLevel



Returns a list containing all of the nodes in the entire tree that are at the given node's level


Syntax
Example

Syntax

CALL NOTIFY (orgchart-name, '_getLevel', node-id, list-of-names, list-id);

Argument Type Description
node-id
N specifies the numeric identifier of the node
list-of-names
C specifies a single, quoted text string containing the names of the node variables whose values are to be returned in list-id. Separate multiple node variable names with a space. Specify 'ALL' to return the value of all variables.
list-id
l returns the identifier of an SCL list containing a sublist for each node in the tree at the same level as node-id. Each sublist contains the values of items specified in list-of-names.


Example

In this example, MYLIST contains a list of lists of the displayed text of all nodes in the entire tree that are at the same level as the selected node. Assume this code is in a labeled section specified in the Select Action window:

call notify('org1','_get_selected_',
             widgetid,nodeid);
if (nodeid eq 0) then return;
call notify('org1','_get_level_',
             nodeid,'text',mylist);


Chapter Contents

Previous

Next

Top of Page

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