Model View Data Type Details Window
Select Attributes tab
Most of the model view data type configuring is done in the Select Attributes tab. The majority of the tab displays the attributes that are available from the data model selected when creating the model view. The bottom section of the tab lists data types that have a relationship defined in the data model that permits them to be joined with the primary data model data type used to create the model view data type being configured.
Select the checkbox in the Available column next to attributes that you want to make available for use in tools using this model view. Deselecting the Available option on an attribute automatically deselect the Displayed option for that attribute.
Select the checkbox in the Displayed column next to attributes that you want to be visible by default in tools using this model view. Selecting the Displayed option automatically select the Available option. Attributes must be available to be displayed.
Clicking the Select all rows icon in tab's tool bar selects the Available option for all attributes. Clicking the Clear all rows icon
in the tab's tool bar deselects the Available option and the Displayed option for all attributes.
The Display Name for an attribute can be changed by clicking in the Display Name table cell and typing in a new name. The Display Name appears as the column header in tools, such as the Data Selector that uses the model view.
The Attribute Type column indicates how the attribute is represented (for example, as a TIMESTAMP, INTEGER, VARCHAR). Some attribute types support custom display format options. For example, TIMESTAMP attributes can be displayed as just a date, or as a date and a time of day. FLOAT_QUANTITY attributes can be displayed with the number and unit in the same column or in separate columns. Attributes that support custom display format options appear with an edit icon in the Format column. Clicking the edit icon opens a window that can be used to set display format options that apply to just that attribute. Attribute-specific format settings override any display format preferences set in your OpenSpirit Desktop preference settings.
The order that attributes marked for display appears in tools using the model view can be set by clicking the Set Column Order icon in the tab's tool bar. This opens the Set column ordering window, which shows all of the attributes selected for display. Attributes can be reordered by selecting one or more attributes to be moved and clicking the up
or down
arrow icons. This moves the selected attributes up or down one row for each icon click. The order that the attributes appear top to bottom in the list corresponds to the attribute column ordering left to right in the tools using the model view.
Clicking the Ok button accepts the reordering and dismisses the window. The rows selected for display in the Select Attributes tab reordered to match the new ordering.
Attributes from related data types can be added to the attribute list by clicking the Add Attributes button next to one of the related data types listed at the bottom of the Select Attributes tab. This opens an attribute selection window used to select the attributes from the related data type that you would like to add to the attribute list.
Select the attributes that you want from the related data type and press the Ok button. The selected related attributes will be added to the attribute list after the last attribute that has the Available option selected. The added attributes are selected as Available but the Displayed option not checked. Check the Displayed option if you would like the related attribute to be displayed by default.
The related data type's attribute selection window has a section at the bottom that shows data types that it is related to. You can click the Add Attributes button next to one of its related data types to continue following relationships adding additional attributes.
Adding attributes from related data types results in join queries. The more related data types that you join in the longer the query execution time in tools using the model view, such as the Data Selector.
Apply Query Filter tab
The Apply Query Filter tab is used to add constraints on the data rows that are shown in tools using the model view. This tab functions almost exactly like the Query Filter window in the OpenSpirit Data Selector. See the Setting Query Filters section of the Data Selector help guide for an explanation of how to construct a query filter.
The only significant difference between the Model View Manager's Apply Query Filter tab and the Data Selector's Query Filter window is the Scope to same type option at the bottom right of the tab.
This option is typically used to construct a data type that is intended to serve as a details tab. Checking this option constrains the data type so its view scope can only be set to another data type derived from the same data model data type. This feature was used to create the Well Details and Log Details data types in the OpenSpirit default Data Selector model view.
Settings and Properties tab
There is rarely a need to use the Settings and Properties tab. The Data type is visible by default option is redundant to the option in the Visible column on the model view section of the Model View Manager main window. The Data selection events enabled option is used to prevent tools using the model view, such as the OpenSpirit Data Selector, from permitting data selection events to be sent for selected rows of the data type. This is typically used to avoid user confusion when it is known that no applications exist that is interested in listening for data selection events for that data type.
The User-Defined Properties section of this tab is used to add properties that can be used to control special handling in tools using the model view, such as the Scan Job Manager.