Scriptable Reports

DataStoreCell

The data store cell interface.

Example

A simple HTML select element rendered from a DataStore using the DataStoreCell interface

var sHtml = "<select>";
var iRowCount = oDataStore.rowCount;
for ( var iRow = 0; iRow < iRowCount; iRow++ )
{
    sHtml += '<option>' + oDataStore.getCell( iRow, 0 ).value + '</option>';
}
sHtml += "</select>";
oControlHost.container.innerHTML = sHtml;

Members

(readonly) columnIndex :Integer

The column index (zero based).
Type:
  • Integer

(readonly) formattedValue :String

The cell's formatted value. If there's no formatted value, the value (unformatted) is returned.
Type:
  • String
See:

(readonly) rowIndex :Integer

The row index (zero based).
Type:
  • Integer

(readonly) value :Number|String

The cell's value.
Type:
  • Number | String
See:

(readonly) valueIndex :Integer

The cell's index (zero based) into the columnValues. If this column is not categorical data, the index will be NaN.
Type:
  • Integer
See: