Tagged with arrays - Visokio Forums http://forums.visokio.com/discussions/tagged/arrays/feed.rss Mon, 30 Oct 17 16:51:31 -0400 Tagged with arrays - Visokio Forums en-CA Idea: Sources - Free-form tables/arrays? http://forums.visokio.com/discussion/2641/idea-sources-free-form-tablesarrayss Tue, 08 Jul 2014 07:17:49 -0400 daniel 2641@/discussions
For example, one could define the number of columns and rows and populate an empty table matrix of cells, which you can then fill in with values within the DataManager.

The idea is to actually reduce having to create separate lookup Excel/csv files and to have a way to do a free-text table all within the DataManager space. This will also make moving the IOK file around easier as it will have fewer external file dependencies if we can embed all the data (and not just a 10-record snapshot) within the DM space within the IOK file itself. ]]>
Content View: Scripting - Array of colours? http://forums.visokio.com/discussion/2494/content-view-scripting-array-of-colourss Thu, 13 Mar 2014 08:50:22 -0400 Bart 2494@/discussions
Is there a way to get all colours assigned to the field into array inside content view?

Bart
]]>
Scripting: 2 Fields into multi-dimensional array? http://forums.visokio.com/discussion/1825/scripting-2-fields-into-multi-dimensional-arrays Wed, 10 Oct 2012 11:59:14 -0400 Bart 1825@/discussions Scripting: Using arrays of data (2.8+) http://forums.visokio.com/discussion/1656/scripting-using-arrays-of-data-2.8- Mon, 16 Jul 2012 11:23:32 -0400 steve 1656@/discussions
You can use Javascript in Omniscope in the SCRIPT function in formulae, and to do HTML pre-processing in the Content view.

Syntax:

dataArray(fields, rowSubset, includeFieldNames)

Argument "fields": An optional array of field names. If omitted, all fields are retrieved.
Argument "rowSubset": An optional data subset, as returned by the subset function.
Argument "includeFieldNames": if true, the first 'row' in the returned 2d array 'table' will be the field names.

Returns: A two-dimensional array of cell data, indexed as [column][row], with indexes numbered from 0 to n-1.

See attached example, using dataArray inside a Content View.]]>