IR Framework

Section.getValues Method

The getValues method reads values from one column in a Results or Table into an array.
object.getValues (columnName)

Arguments

object
Required. A Results or Table object.

columnName
Required. A string containing the name of the column from which to read the values.


Remarks

The resulting array contains the list of values sorted alphabetically with duplicates removed.

Example:
//	populate a listbox control from the values in a column
var arr = ActiveDocument.Sections["R-MyResults"].getValues("myColumn");
ActiveDocument.Sections["Dashboard"].Shapes["lstMyList"].SetList(arr);


Requirements

ActiveDocument.loadObjectMethods() must be called after the Result/Table is created.