Class Qv.Document.Object.DataCell
Data for a cell. There may be additional/different properties on this object depending on the object type.
Constructor Attributes | Constructor Name and Description |
---|---|
Data for a cell.
|
Field Attributes | Field Name and Description |
---|---|
Color
|
|
Select type.
|
|
State.
|
|
Text
|
|
Value
|
Class Detail
Qv.Document.Object.DataCell
Data for a cell. There may be additional/different properties on this object depending on the object type.
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', Host: 'Local', Anonymous: 'true', BodyOnLoadFunctionNames: ['init'] });
Field Detail
{String}
color
Color
{String}
selecttype
Select type. Information on how you are able to select (e.g. single, multi).
{String}
state
State. e.g. Optional, Selected, Excluded.
{String}
text
Text
{String}
value
Value