Chapter Contents

Previous

Next
Data Set Data Model: _getColumnAttributes

Data Set Data Model: _getColumnAttributes



Returns the attributes for a column


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_getColumnAttributes', list-id);

Argument Type Description
list-id
N specifies the identifier of an SCL list to contain the current column attributes


Details

This list must contain at least a single character item with an item name of NAME, the value of which must be a valid column name, or it must contain a single numeric item with an item NAME of COLUMNNUMBER.

The _getColumnAttributes method is indirectly delegated to the Data Set Model class, so column attributes for the Data Set Model may be included in this list. By default, all attributes are returned. To return only certain column attributes, include the appropriate named items in your list.

To return a single column attribute, use the _getColumnAttribute method.

See Data Form and Data Table: _setColumnAttribute in the Data Form Data Table class for a list of column attributes.


Example

This example gets all the column attributes for the column SEX in the table SASUSER.CLASS. It also sets the minimum and maximum values for the column HEIGHT in the same table. This example assumes you have created a frame with a data table object named TABLE.
 Note about code
init:
   call send(_frame_,'_getWidget',
             'table',tabid);
   call send(tabid,'_setDataset',
            'sasuser.class');
 Note about code
   gattr=makelist();
   gattr=setnitemc(gattr,'sex', 'name');
   call send(tabid,'_getColumnAttributes', gattr);
   call putlist(gattr,'All attributes for SEX=',0);
 Note about code
   rc=clearlist(gattr);
   gattr=setnitemc(gattr,'height','name');
   gattr=setnitemn(gattr,48,'minvalue');
   gattr=setnitemn(gattr,72,'maxvalue');
   call send(tabid,'_setColumnAttributes',
             gattr);
 Note about code
   rc=clearlist(gattr);
   gattr=setnitemc(gattr,'height','name');
   gattr=setnitemn(gattr,.,'minvalue');
   gattr=setnitemn(gattr,.,'maxvalue');
   call send(tabid,'_getColumnAttributes',
             gattr);
   call putlist(gattr,'Min & Max values of column HEIGHT=',0);
   rc=dellist(gattr);
return;


Chapter Contents

Previous

Next

Top of Page

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