![]() Chapter Contents |
![]() Previous |
![]() Next |
| Organizational Chart: _setCurrent |
| Syntax | |
| Details | |
| Example |
Syntax |
| CALL NOTIFY (orgchart-name, '_setCurrent', 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 one or more node variables whose values you want to change. List-of-names can include any of the node variables except CHILDREN, LEVEL, NODEID, and WIDGETID |
| list-id |
N | specifies the identifier of an SCL list containing the numeric or character data to assign to the node variables specified in list-of-names. Each list entry contains a data value and an item name that corresponds to a node variable name. |
| Details |
To change, add, or delete the children of a node, use the _repopulate method.
| Example |
This example replaces the name of the node containing the name Rathers with the name entered by the user in a text entry field called NAME:
NAME:
slist = makelist (0);
slist = insertc (slist, 'Rathers', 1,
'text');
call notify ('org1', '_search_', nodeid,
'text /s', slist);
if (nodeid ne 0) then do;
rc = setnitemc(slist, name, 'text');
call notify ('org1', '_set_current_',
nodeid, 'text', slist);
end;
rc = dellist (slist, 'y');
return;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.