KnowledgeBase

Search or browse in depth articles, software resources and videos on everything about Appward.

Table of contents

ScreenTable – Source

Wednesday April 19, 2023 - 2 min read

Units: String indicating the path. (e.g. .Autoclove.Variable\Value)

Path to source data that will be displayed by a ScreenTable object. There are many data types that the source property may point to:

DataTables

To display data from a DataTable provide the path to a DataTable’s DataTableRef property. (e.g. .Database.DataTable\DataTableRef)

Child ScreenColumns may have their ColumnNameOrIndex property set to either the names of the columns from the data table or indexes.

Arrays

To display data from an Array provide the path to a property that contains an array. (e.g. .MyVariable\Value or .DataArray\Array)

Child ScreenColumns may have their ColumnNameOrIndex property may only be set to column names if the names are included as the first row of the data set and IncludeColumnNames property of the ScreenTable has been set to True.

NOTE: The source must be an ARRAY OF ARRAYS where each index contains a row represented by an array of values. 

Example:

SourceArray {

0: {John, Doe}

1: {Jane, Doe}

}

Objects

To display data about Objects:

  1. Set the Source property to the path of the desiried object.
  2. Create a ScreenColumn as a child of a ScreenTable.
  3. Set the ScreenColumn’s ColumnNameOrIndex property to the name of the property that should be displayed from all children of the object pointed to by the ScreenTable’s Source property.

Text

formatted string may also be used to set the Source property:

Single Column Table

To create a single column table, use this format (NOTE: A column name may be provided as the first item if IncludeColumnNames is set to True):

  • IncludeColumnNames = False
    • Item1; Item2; Item3; …
  • IncludeColumnNames = True
    • ColumnName; Item1; Item2; Item3; …

 

Multi-Column Table 

To create a multi-column table, use this format (NOTE: When IncludeColumnNames is set to True, the first row should specify the columns names.):

  • IncludeColumnNames = False
    • Col1Row1, Col2Row1;Col1Row2,Col2Row2, …
  • IncludeColumnNames = True
    • ColumnName1, ColumnName2;Col1Row1, Col2Row1;Col1Row2, Col2Row2; …

DataType

String

EditType

Text


Published by: