Please enable JavaScript to view this site.

Altova XMLSpy 2020 Enterprise Edition

Table Display view

Objects and arrays that contain at least one object or array can be viewed either as a list (highlighted in screenshot at left) or as a table (highlighted in screenshot at right). To switch between these two views, click the table icon that is located below the object or array icon (see screenshot). In array tables, the array items are displayed as rows. For example, in the screenshot below right, the Tracks array is displayed as a table. This array consists of child objects, which are displayed as rows. Each object's properties (Title and Duration in the screenshots below) are shown as columns, with the names of common properties being displayed as the headers of columns. To switch rows and columns, click the icon in the top left cell of the table.

Click t expand/collapse     Click to expand/collapse

 

Icons for viewing and editing in Table Display

The icons shown below are available in Table Display and provide viewing and editing functionality.

 

ic_jsongridmakelist / ic_jsongridmaketable

When colored, Table Display is on, otherwise off. Click to switch the display

ic_jsongridrowcols / ic_jsongridcolrows

A toggle command in top left cell of table. Switches rows to columns and vice versa

ic_jsongridfilteroff / ic_jsongridfilteron

When colored, a filter for the table, object, or array is active, otherwise the filter s deactivated. Click to deactivate/activate. To edit the expression, double-click it

ic_jsongridappendrow

In an array: Append an array item to the list or table

In an object: Append a key:value pair (as a row in a list, or (in table display) as a cell of a new table column)

ic_jsongridaddtype

Add an empty key:value pair; the type of the value is string by default

ic_jsongridassigntype

Select the datatype of a property value, or enter a comment or formula

 

 

Editing in Table Display

In Table Display, you can carry out the editing actions listed below.

 

Add rows to a table

You can add rows in the following ways:

 

Add a child row to the table: Select the table and, in the context menu, select the command Add Child (Ctrl+Shift+Enter). Alternatively, click the table's Append Child icon (see icon list above). A row will be appended to the bottom of the table.

Append a sibling row to the table when a row is selected: Select a row and, in the context menu, select the command Append (Ctrl+Enter). A row will be appended to the bottom of the table.

Insert a sibling row above the selected row: Select a row and, in the context menu, select the command Insert (Ctrl+Alt+Enter).

 

 

Enter or edit a property value

Select the table cell in which the property value is located and enter the value. The datatype will be automatically detected if the value is a string, number, Boolean, or null. In case of ambiguity, the type is set to string. You can override the automatic selection by using the datatype-selection icon (see icon list above). Alternatively, you can use an appropriate shortcut (see shortcut table below).

 

*

Auto (detects string, number, Boolean, null, and sets accordingly)

"

String

[

Array

{

Object

/

Comment (document must be JSONC or JSON5)

=

Formula (document must be JSONC or JSON5)

 

 

Add an empty row cell in a new column

You can add a new cell to a row. The new cell will be part of a newly created column. To add the new cell, select the row you want and, in the context menu, select the command Add Child (Ctrl+Shift+Enter). Alternatively, click the row's Append Row Cell icon (see icon list above). The row cell will be created in a new column. The type of the value in the cell is string by default. Enter the property's value in the cell and the property's name as the column header. The other cells in the newly created column will be empty.

 

© 2020 Altova GmbH