Jump to: navigation, search

Difference between revisions of "HowTo:Use a Query in a View"


Line 2: Line 2:
 
{{Hint|Be aware that a corresponding [[VIEWITEMS|View Item]] is necessary for a query as well.}}
 
{{Hint|Be aware that a corresponding [[VIEWITEMS|View Item]] is necessary for a query as well.}}
  
 +
=== Place query among root objects ===
 
# Navigate to the [[MetaClass]] [[VIEW]] in the ''[[Class Browser]]''.<br/>[[File:UI_Use_Query_View_01.PNG|220 px|border|alt=Unit|Unit]]
 
# Navigate to the [[MetaClass]] [[VIEW]] in the ''[[Class Browser]]''.<br/>[[File:UI_Use_Query_View_01.PNG|220 px|border|alt=Unit|Unit]]
 
# To see now the entire structure in the ''View Test Environment'', locate an existing ''View'', nor the required Root objects must be added to view with the ''Relation Editor''.<br/>[[File:UI_Use_Query_View_02.PNG|330 px|border|alt=Unit|Unit]]
 
# To see now the entire structure in the ''View Test Environment'', locate an existing ''View'', nor the required Root objects must be added to view with the ''Relation Editor''.<br/>[[File:UI_Use_Query_View_02.PNG|330 px|border|alt=Unit|Unit]]
# The objects needs to be added to the list of root objects of the according ''View'', there are two different ways to achieve that:
+
 
:*Individual objects can be added directly to the [[SYSREL_VIEWROOT|Root object relation]] in the ''View'' using the [[Relation Editor#Drag & Drop|Relation Editor]].
+
# Connect a View object to the {{Relation Editor}}
:*To add multiple objects of the same type, a ''Query'' has to be created and added to the [[SYSREL_VIEWROOTQUERY|Root query relation]] in the ''View''.<br/>[[File:UI_Use_Query_View_02.PNG|330 px|border|alt=Unit|Unit]]
+
# The query object needs to be added to the list of root objects, there are two different ways to achieve that:
 +
:*Individual objects can be added directly to the [[SYSREL_VIEWROOT|Root object relation]] of the ''View'' using the [[Relation Editor#Drag & Drop|Relation Editor]].
 +
:*To add multiple query objects, another ''Query'' has to be created and added to the [[SYSREL_VIEWROOTQUERY|Root query relation]] in the ''View''.<br/>[[File:UI_Use_Query_View_02.PNG|330 px|border|alt=Unit|Unit]]
 +
 
 +
{{Attention|Only the objects which are located directly underneath the Infrastructure relation will be part of the infrastructure. Their child objects will NOT be included (automatically).}}
 +
 
 
# Save the changes with {{key press|Ctrl|S}} or the save command
 
# Save the changes with {{key press|Ctrl|S}} or the save command
  

Revision as of 11:02, 24 March 2015

A Query object can be shown within a View hierarchy similar to any other object, once the query is placed either as root object of the view or a child of another object shown in the view.

IC Hint square.pngBe aware that a corresponding View Item is necessary for a query as well.

Place query among root objects

  1. Navigate to the MetaClass VIEW in the Class Browser.
    Unit
  2. To see now the entire structure in the View Test Environment, locate an existing View, nor the required Root objects must be added to view with the Relation Editor.
    Unit
  1. Connect a View object to the Relation Editor
  2. The query object needs to be added to the list of root objects, there are two different ways to achieve that:
IC Attention.pngOnly the objects which are located directly underneath the Infrastructure relation will be part of the infrastructure. Their child objects will NOT be included (automatically).
  1. Save the changes with Ctrl+S or the save command

See also