Select Instances
Query instances of one specified type and display the result in a table format. There will be one row for each instance and one column for each attribute in the result table. The EDMinstanceBrowser can be activated by clicking on a table cell that contain an instanceID or an aggregateID. The result table can be sorted according to a column by clicking on the column head frame.
Optionally all subtype instances of the specified type can be queried as well.
The condition argument to this command can be any legal Express-X logical expression, including function calls. The condition should be written in "symbolic Express-X syntax".
Any number of tables (result of this command) can be active on the screen simultaneously. The actual available virtual memory is the only limitation factor for the number of simultaneously active tables.
Optionally the result table can be written to a file in various specified formats instead of a table displayed on the screen.
Arguments:
Repository: |
Specify the name of the open repository that holds the actual instances. Repository names are case sensitive. |
Model: |
Specify the name of the model that holds the instances to select. Model names are case sensitive. |
Entity. |
Specify the name of the entity, i.e. the type of the instance to select. Entity names are case insensitive. |
Attributes: |
Specify the names of the attributes that will be the columns in the resulting table. In case of more attributes in this argument, the attribute names should be separated with the space or the comma character. The number and the order of the columns in the result table will be according to the number and order of the attributes in this argument. Attribute names are case insensitive. |
Order by: |
Specify the name of the attribute to order the selection by. |
First instance to check: |
Specify an integer value denoting the index, i.e., element number in the entity extent aggregate that holds all instances of the same type in a model. The value of the <First instance index to check> argument specifies the index of the first instance to be queried. The instance type is specified by the <Entity> argument. The first instance in the entity extent aggregate has index zero. |
Condition: |
Specify the condition the actual instance should match. The <Condition> argument can be any legal Express-X logical expression, including function calls. The <Condition> should be written in "symbolic Express-X syntax". |
Max number of hits: |
Specify the maximum number of instances that matches the condition specified in the argument <Condition>. This argument restricts the number of instanceID to be returned. This argument can be set with the string value all – i.e. to return all instanceID matching the query. |
Output file: |
Specify the name of an optional output file that will receive the result table. |
Options:
accumulating command output: |
A global option that appends the command output to the EDMsupervisor output window. Otherwise the output window is refreshed and only the last command output is displayed. |
match selected input: |
A global option that specifies that only items that partly or exactly matches the string in the related argument input field when activating a Select button, will be in the selection list. An empty (blank) string will match all items. |
update indexes: |
A global option that specifies that the <First instance to check> argument will be updated to the next index after the one currently displayed. |
ascending: |
Ascending sorting order. This option is only effective when the <order by> argument is specified. When the result table is displayed on the screen, the table can be sorted according to a column by clicking on the actual column head frame. |
descending: |
Descending sorting order. This option is only effective when the <order by> argument is specified. When the result table is displayed on the screen, the table can be sorted according to a column by clicking on the actual column head frame. |
subtypes: |
Specifies that all instances in the actual model that is a subtype of the specified instance type in the <Entity> argument will be queried. |
display instance_Id: |
The instanceID will be displayed as the first column in the result table. |
ignore empty columns: |
Specifies that empty columns will not be part of the result table. |
file output: |
Specifies that the result from the command will be written to the file specified in the <Output file> argument. |
html format: |
The output file will be created in HTML format. Default file extension is “.htm”. This option is only valid when the [file output] option is set. |
xml format: |
The output file will be created in XML format. Default file extension is ".xml". This option is only valid when the [file output] option is set. |
ascii format: |
The output file will be created in ASCII format. Default file extension is ".txt". The tabulator character will be delimiter between each column. This option is only valid when the [file output] option is set. |
show file: |
The generated output file will be displayed in the available internet browser when the option [file output] is set together with one of the options [html format] or [xml format]. |