Appxweb Meta
Home > Developer > Scripting > Data Method: getDims

getDims

Returns the dimensions of an array data object.

Syntax
dims = AM_data.getDims(id)
Parameters
id(required). Identifier of the data object.
Return Value
dimsNumber of dimensions of the array data object.
Example
This example demonstrates working with array data Objects using the data scripting object.
Assume we have declared an array data Meta Object with a unique identifier of "did_myarray" having the following values. Note the row and column indexes are bolded.
Row \ Column0123
0[100200300400]
1[500600700800]
2[900100011001200]

var dimensions = AM_data.getDims("did_myarray"); // dimensions now equals 2