In the Data Viewer window you can inspect and change model parameters as well as Application Builder declarations and Java method variables and Java Shell session variables (long arrays, for example).
The Data Viewer window opens when a method is paused at a breakpoint. It can also be opened from the
Windows menu, from the
Developer toolbar, or by using the
Show in Data Viewer button (

) in the
Java Shell window. In the
Java Shell case, the
Data Viewer window opens with the
Java Shell branch in the tree table is expanded, if present. The
Data Viewer window is available in the Application Builder, Model Builder, and Model Manager workspaces. It provides convenient access to all global parameters in a model, which is especially useful when working in the Model Builder workspace.
You find all global primitive declarations, parameters, and Java method and session variables in a table with two columns: Name and
Value. They appear under
Parameters,
Declarations, and
Java Shell. For values that are composed of other values (such as arrays and objects), a triangle symbol at the left side makes it possible to expand the variable to display the parts it consists of. This is the case for
Declarations and
Parameters. Right-click a parameter under
Parameters and choose
Edit Node to go to the definition of that variable in the model. Right-click a variable under
Java Shell and choose
Delete from Session to remove that variable from the current Java Shell session. Right-click any parameter or variable and choose
Copy (or press Ctrl+C) to copy its name and value.
From the toolbar at the top of the Data Viewer window, you can access the following functionality:
From the Collapse All (

) and
Expand Main Levels button (

)toolbar menus, you can choose
Collapse Selected or
Expand Selected to collapse or expand the selected tree branches to main levels (or use the divide and multiply keypad keys, respectively),
Collapse Other to collapse all tree branches except the selected ones (or use the Shift key plus the divide keypad key), or
Collapse All or
Expand All to collapse or expand all branches in the tree.
You can modify the values in the Value column for variables and declarations such as strings, booleans, and scalar numerical values. For parameters, expand the parameter in the table using the triangle symbol to add an
Expression setting where you can edit the parameter’s expression. For Java variables and for declarations in the Application Builder, you see their values underneath the table when selected. For parameters, you see their expressions, values, and descriptions underneath the table when selected. You can also right-click on a row to open a context menu. There you can copy the row data to the clipboard, and if the variable is a model entity (for example,
GeomSequence geom = model.geom("geom1")), you can select
Edit Node to select the corresponding node in the Model Builder tree or Application Builder tree. You can also right-click the column headers and choose
Size Column to Fit or
Size All Columns to Fit. One or both columns are then resized to accommodate their content if needed.