Qv.Document.Object.DataCell

Example
function init() {

    doc = Qv.GetCurrentDocument();

    var lb = doc.GetObject("LB1460");

    lb.SetOnUpdateComplete(function(myself) {

        var 
            rows = this.Data.Rows,
            html = [],
            rowNo = 1,
            myCaption = this.Layout.Caption.label;

        html.push("<table border='1'>");
        html.push("<tr><td colspan='5'>Listbox Title: " + myCaption + "</td></tr>");
        html.push("<tr><td>RowNo</td><td>selecttype</td><td>state</td><td>text</td><td>value</td></tr>");

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

            var row = rows[r];

            if (row == null) continue;

            row = row[0];

            html.push("<tr>");
            html.push("<td>" + (rowNo++) + "</td>");
            html.push("<td>" + row.selecttype + "</td>");
            html.push("<td>" + row.state + "</td>");
            html.push("<td>" + row.text + "</td>");
            html.push("<td>" + row.value + "</td>");
            html.push("</tr>");
        }


        html.push("</table>");


        var elem = document.getElementById('lb');
        elem.innerHTML = html.join("");
    });
};

Qv.InitWorkBench({ View: 'FilmsWebView', Anonymous: 'true', BodyOnLoadFunctionNames: ['init'] });

Members

color :String

Color
Type:
  • String

selecttype :String

Select type. Information on how you are able to select (e.g. single, multi).
Type:
  • String

state :String

State. e.g. Optional, Selected, Excluded.
Type:
  • String

text :String

Text
Type:
  • String

value :String

Value
Type:
  • String