JSE_Datatable is a special type, because it is an object that must be built inside the script. It is used to generate data or retrieve external data that will be used in a consistency index.
In the context of a consistency index, the script associated with the part of the data must return an object of type JSE_Datatable.
Structure
headers: Liste des entêtes de donnéetitle: Title of the header that will be visible from the videocoding interfaceid: Header ID, to identify the values of each row and retrieve them from the scripts.type: Column Type (String, Date, Decimal, Text, State)
availableValues: (Optional) lists of values available. The value input box will be replaced by a drop-down list)
- values : List of data values in the “key” form: “value”
{
"values": [
{"CODE_ITEM" : "#253", "NAME" : "HDD 2To", "DATE" : "24/07/2023" },
{"CODE_ITEM" : "#254", "NAME" : "HDD 1To", "DATE" : "01/08/2023" }
],
"headers" : [
{"title" : "Code", "id" : "CODE_ITEM", "type" : "String", "availableValues" : ["#253", "#254", "#255"] },
{"title" : "Nom", "id" : "NAME", "type" : "String" },
{"title" : "Date de creation", "id" : "DATE", "type" : "Date" }
]
}
Type “State”
The “State” type is a special type of column for displaying a status icon. It is possible to combine this type with “availableValues” in order to define the different icons available to the user
- NONE
- VALID
- ERROR
- WARNING
- CONSULT
- LIST
- FLASH
- STAR_EMPTY
- STAR_HALF
- STAR_FULL
- MORE
- UNMIS
- EMOJI_SAD
- EMOJI_NEUTRAL
- EMOJI_SMILE