SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.getRowProps method
Return the value of fields corresponding to the properties which are specified in props among data row values as JSON object.
function getRowProps (row: Integer|[Integer], props: [String], emptyValue: *): Object;
- Returns
- Object
- Parameters
- row - Integer|[Integer]. required.
The number of row.
- props - [String]. required.
The array of property name which will be contained in the returned JSON object.
It only contains properties which have been contained in this array.
And, it will exclude when it is contained in this array but not a field name.
- emptyValue - *.
The value which will replace undefined field value.
If specify the default data type value like String, it will be applied to all fields,
and if specify JSON object, it will search and replace with the value of matching field name. v 1.3.8
- Note
- Like other methods, you must not update Date object which is returned from DATETIME field.
Code -1
var row = ds.getRowProps(3, ['name', 'addr'], '');
- See Also
- getRowObject
- getValues
- getRowObjects
- getRowObjects
- Examples
- Grid Data Set Rows