Jump to: navigation, search

Difference between revisions of "HowTo:Create a new QueryScope"


 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
With a [[QueryScope]] is defined a [[MetaClass]] and their properties are visible on the mobile client.
+
A [[QueryScope]] is used to specify the query object and the list of published properties available as search criteria on the mobile client.
  
# Navigate to the MetaClass QUERYSCOPE in the ''[[Class Browser]]''<br/>[[File:UI_QueryScope_01.PNG|330 px|border|alt=QueryScope|QueryScope]]
+
# Navigate to the MetaClass [[QUERYSCOPE]] in the ''[[Class Browser]]''<br/>[[File:UI_QueryScope_01.PNG|330 px|border|alt=QueryScope|QueryScope]]
 
# Create a new instance using the ''[[Bulk Editor]]''<br/>[[File:UI_QueryScope_02.PNG|880px|border|alt=QueryScope|QueryScope]]
 
# Create a new instance using the ''[[Bulk Editor]]''<br/>[[File:UI_QueryScope_02.PNG|880px|border|alt=QueryScope|QueryScope]]
# It is required to assign a target type of the ''QueryScope'' to the '''QUERY''' attribute either by
+
# Assign a query instance of the ''QueryScope'' to the '''QUERY''' attribute either by
#* dragging and dropping a MetaClass object onto the cell
+
#* dragging and dropping a query object onto the cell
#* selecting the desired MetaClass from the dialog appearing after double-clicking the cell  
+
#* selecting the desired Query from the dialog appearing after double-clicking the cell  
 
# It is recommended to set at least name and description
 
# It is recommended to set at least name and description
 
# Save the changes with {{key press|Ctrl|S}} or the save command
 
# Save the changes with {{key press|Ctrl|S}} or the save command
# The object needs to be added to the list of scopes object of the according [[Application]]:
+
# Add a parent scope using the inheritance field in the ObjectExplorer of the scope if needed. MetaProperties form the parent scope will now be added to the scope. The parent scope must be of type AbstractScope {{Version/ServerSince|2.6.2}} <br/> [[File:InheritFromAbstractScope2.PNG|400px]]
#*Individual objects can be added directly to the [[CONTEXTSCOPE|Scopes relation]] in the ACM using the [[Relation Editor#Drag & Drop|Relation Editor]].<br/>[[File:UI_MetaClassScope_03.PNG|330 px|border|alt=MetaClassScope|MetaClassScope]]
+
# The object needs to be added to the list of scope objects of the according [[Application]]. Use the {{Rel|SYSREL_CONTEXTSCOPE|SYSREL_CONTEXTSCOPE}} relation to add individual objects to the list of scopes.<br/>[[File:UI_MetaClassScope_03.PNG|330 px|border|alt=MetaClassScope|MetaClassScope]]
# Now the characteristics of the ''Queryscope'' object can be changed.<br>[[File:UI_QueryScope_03.PNG|660 px|border|alt=MetaClassScope|MetaClassScope]]
+
# Save the changes with {{key press|Ctrl|S}} or the save command
# Add the properties to be displayed on the mobile client and edit there characteristics.<br>[[File:UI_QueryScope_04.PNG|660 px|border|alt=MetaClassScope|MetaClassScope]]
+
# Add properties to the list of published MetaProperties to display them on the mobile client available as search criteria.<br>[[File:UI_QueryScope_04.PNG|660 px|border|alt=QueryScope|QueryScope]].
# The property '''Creation enabled''' and '''Write enabled''' can only be changed in [[UBIK_Studio_Basics#Admin_mode|Admin mode]]:
+
#* The current user will be shown in the down bar  <br/>[[File:UI_Property_editable_04.PNG|220 px|border|alt=Property editable|Property editable]]
+
#* For changing the [[UBIK_Studio_Basics#User_rights|User rights]] click with the right mouse button on the user <br/>[[File:UI_Property_editable_05.PNG|220 px|border|alt=Property editable|Property editable]]
+
 
# Save the changes with {{key press|Ctrl|S}} or the save command
 
# Save the changes with {{key press|Ctrl|S}} or the save command
== See also ==
 
* [[Make a Property editable on Mobile Client]]
 
* [[Create a new MetaClassScope]]
 
  
{{Hint| ''QueryScopes'' are used as a filter, the added properties are the filter criteria. In addition, the matching query must also be hanged in the [[SYSREL INFRASTRUCTUREQ|Infrastructure query relation]]!}}
+
{{Hint|Without relating an according query item (identified by the MetaPropertys name) the system uses equality (<nowiki>=</nowiki>) as filter operator.}}
 +
 
 +
== See also ==
 +
* [[HowTo:Create a new MetaClassScope]]
  
[[Category:How-To]]
+
[[Category:How-To|Create a new QueryScope]]
[[Category:UBIK Studio]]
+
[[Category:Publishing|Create a new QueryScope]]
 +
[[Category:Studio|Create a new QueryScope]]

Latest revision as of 11:29, 25 October 2017

A QueryScope is used to specify the query object and the list of published properties available as search criteria on the mobile client.

  1. Navigate to the MetaClass QUERYSCOPE in the Class Browser
    QueryScope
  2. Create a new instance using the Bulk Editor
    QueryScope
  3. Assign a query instance of the QueryScope to the QUERY attribute either by
    • dragging and dropping a query object onto the cell
    • selecting the desired Query from the dialog appearing after double-clicking the cell
  4. It is recommended to set at least name and description
  5. Save the changes with Ctrl+S or the save command
  6. Add a parent scope using the inheritance field in the ObjectExplorer of the scope if needed. MetaProperties form the parent scope will now be added to the scope. The parent scope must be of type AbstractScope
    InheritFromAbstractScope2.PNG
  7. The object needs to be added to the list of scope objects of the according Application. Use the IC RELATION.png SYSREL CONTEXTSCOPE relation to add individual objects to the list of scopes.
    MetaClassScope
  8. Save the changes with Ctrl+S or the save command
  9. Add properties to the list of published MetaProperties to display them on the mobile client available as search criteria.
    QueryScope.
  10. Save the changes with Ctrl+S or the save command
IC Hint square.pngWithout relating an according query item (identified by the MetaPropertys name) the system uses equality (=) as filter operator.

See also