SetDefault method: Rowset class
Syntax
SetDefault(recname.fieldname)
Description
The SetDefault method sets the value of the specified recname.fieldname to a null value in every row of the rowset. If this method is being run from a component against Component buffer data, the next time default processing is performed, this value is reinitialized to its default value: either a default specified in its record field definition or one set programmatically by PeopleCode located in a FieldDefault event. If neither of these defaults exist, the Component Processor leaves the field blank.
No default processing is performed against data that is not in the Component buffers.
Blank numbers correspond to zero on the database. Blank characters correspond to a space on the database. Blank dates and long characters correspond to NULL on the database. SetDefault gives each field data type its proper value.
Parameters
| Parameter | Description |
|---|---|
|
recname.fieldname |
Specifies a field. The field must be in the specified record, on the rows of the rowset. |
Returns
None.
Example
This example resets the PROVIDER to its null value. This field is reset to its default value when default processing is next performed:
If COVERAGE_ELECT = "W" Then
&ROWSET.SetDefault(INS_NAME_TBL.PROVIDER);
End-if;