eachDataRow method

Note: STABLE.
This API is reliable and breaking changes are unlikely.

backendApi.eachDataRow(callback)

Loops through data rows for this object. Only rows that are available client side will be used.

Version history

Introduced 1.0

Parameters

callback

Type: Function

Function to call for each row.

Parameters are row number and row data as an array of NxCell objects.

The loop is terminated if the function returns false.

Returns

An array of NxCell.

NxCell section in the HyperCube topic.

Example

this.backendApi.eachDataRow(function(rownum, row) {
	html += '<li ' + style + ' class="state' + row[0].qState + '" data-value="' +
		row[0].qElemNumber + '">' + row[0].qText;
	if(row[0].qFrequency) {
		html += '<span>' + row[0].qFrequency + '</span>';
	}
	html += '</li>';
});

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?