Skip to main content Skip to complementary content

eachDataRow method

Information noteSTABLE.

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

Version history
Version state Details
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 page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!