Chapter Contents

Previous

Next
Data Form and Data Table: _getColumnAttributes

Data Form and Data Table: _getColumnAttributes



Returns the attributes for a column

Delegated to: Data Set Data Model class


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.

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.


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.