Chapter Contents |
Previous |
Next |
Text Model Template: _attach |
Syntax | |
Details |
Syntax |
CALL NOTIFY (viewer-name, '_attach', attr-list); |
Argument | Type | Description |
---|---|---|
attr-list |
N | specifies the identifier of an SCL list containing the attributes of the new model |
Details |
The _attach method for the model is called whenever the _attach method for the text viewer is called. Like the _setAttributes model method, the _attach method is responsible for taking the relevant items off of the attributes list and setting model values accordingly.
The attributes list is usually filled in by the Data Class Attributes window of the text viewer and contains model-specific information. For example, the attributes list of the external file model contains the name of the file.
The _attach method is also responsible for connecting the model to the viewer so that the model can call viewer methods.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.