eachDataRow method
eachDataRow(callback)
Method used to loop through data rows for this object. Only rows available client side will be used.
- Since:
-
- 1.0
Parameters
Name | Type | Description |
---|---|---|
callback | 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
Returns an array of NxCell.
See: NxCell section in the Qlik Engine API help.
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!