Chapter Contents |
Previous |
Next |
Data Form and Data Table: _getColumnAttributes |
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.
INIT: call send(_frame_,'_getWidget','table', tabid); call send(tabid,'_setDataset', 'sasuser.class'); |
gattr=makelist(); gattr=setnitemc(gattr,'sex','name'); call send(tabid,'_getColumnAttributes', gattr); call putlist(gattr,'All attributes for SEX=',0); |
rc=clearlist(gattr); gattr=setnitemc(gattr,'height','name'); gattr=setnitemn(gattr,48,'minvalue'); gattr=setnitemn(gattr,72,'maxvalue'); call send(tabid,'_setColumnAttributes', gattr); |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.