Chapter Contents |
Previous |
Next |
Organizational Chart: _getSelected |
Syntax | |
Details |
Syntax |
CALL NOTIFY (orgchart-name, '_getSelected', widget-id<, node-id>); |
Argument | Type | Description |
---|---|---|
widget-id |
N | returns the numeric, object identifier of the widget |
node-id |
N | returns the numeric identifier of the node |
Details |
Use this method only in the labeled section of the SCL program that runs when a node is selected.
Another way to retrieve node-id is from the _SELF_ list. Use this statement in the _select method of a widget or node instead of calling the _getSelected method:
nodeid = getnitemn(_self_,'_nodeid_');
If a click occurred anywhere other than directly on a node, widget-id and node-id return 0. Be sure to check for 0 before calling other methods with node-id.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.