Chapter Contents

Previous

Next
Form Data Model: _init

Form Data Model: _init



Initializes the model


Syntax
Details

Syntax

CALL SEND (model-id, '_init'<, model-list>);

Argument Type Description
model-list
N specifies the identifier of an SCL list that will contain the information the model should use when initializing. If this list is specified and it contains a named item called "NORUNSCL" set to 1, the model will not execute SCL code.


Details

The _init method is called whenever you make an instance of the Form Data Model class, either through a call to _new or to the instance function.

The _init method does initialization for the Form Data Model class. It also calls the _init method of the parent class.

If your model subclass of the Form Data Model class needs to do initialization, it should override the _init method. When you override the _init method for your model subclass, call the _init method of the parent class (by using CALL SUPER) before adding your own processing so that the Form Data Model _init method can run first.

The model-list list is optional. If the NORUNSCL item is on this list and is set to 1, the model's SCL labels will not run even if there is an SCL entry specified for this model. For example, you can use this functionality when you want a viewer to instantiate a model at build time without executing any SCL code.


Chapter Contents

Previous

Next

Top of Page

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