Getting Started | Class Index

Classes


Class Qv.Document.Object.HeaderCell

Data for a cell in the header area of a QlikView object. As returned by Qv.Document.Object.Data#HeaderRows.

Class Summary
Constructor Attributes Constructor Name and Description
 
Data for a cell in the header area of a QlikView object.
Field Summary
Field Attributes Field Name and Description
 
Style (reference to entry in the Data.CellStyles collections).
 
The text for the cell.
Class Detail
Qv.Document.Object.HeaderCell
Data for a cell in the header area of a QlikView object. As returned by Qv.Document.Object.Data#HeaderRows.
Example:
function init() {

    var tbl = doc.GetObject("CH04");
    
    tbl.SetOnUpdateComplete(function () {

        var 
            html = [],
            headerRows = this.Data.HeaderRows;

        html.push("<table border='1'>");

        for (var r = 0, max = headerRows.length; r < max; r++) {

            var rowData = headerRows[r];

            html.push("<tr>");

            for (var c = 0; c < rowData.length; c++) {

                var cell = rowData[c];
                html.push("<td>" + cell.text + "</td>");

            }

            html.push("</tr>");
        }

        var elem = document.getElementById('tb');
        elem.innerHTML = html.join("");
    });
}
Field Detail
{Number} style
Style (reference to entry in the Data.CellStyles collections).

{String} text
The text for the cell.