Jump to: navigation, search

Difference between revisions of "METACLASSSCOPE"


Line 13: Line 13:
 
The system tries to load the most accurate MetaClassScope object, where the MetaClass of the current object serves as filter criterion. If the system can not directly locate a proper MetaClassScope it searches up the inheritance hierarchy to find the most suitable.
 
The system tries to load the most accurate MetaClassScope object, where the MetaClass of the current object serves as filter criterion. If the system can not directly locate a proper MetaClassScope it searches up the inheritance hierarchy to find the most suitable.
  
== Configuration ==
+
== Specific Properties ==
=== MetaClassScope ===
+
The '''Metaclass''' property of an instance references to the according MetaClass (see [[Create a new MetaClassScope]]).
+
 
+
=== MetaProperties on Relational Object ===
+
[[File:UI_MetaClassScope_05.PNG|thumb|220px|alt=Relational Data|Relational Data of a MetaClassScope]]
+
 
{| class="wikitable" width=50%
 
{| class="wikitable" width=50%
 
|-
 
|-
! width=30% | Name !! width=20% | Data type !! Comment
+
! width=30% | Name !! width=20% | Data type !! width=10% | Optional !! Comment
 
|-
 
|-
| '''Initial value''' || Any || configure specific [[MetaProperty#Initial_value|initial values]]
+
| METACLASS || Guid || no || Reference to the according MetaClass
|-
+
| '''Priority''' || Integer || set a priority value, e.g. used in combination with the Measurement Task Classification
+
|-
+
| '''Write enabled''' || Boolean || property value can be changed by the mobile user
+
|-
+
| '''Visibility''' || Integer || set the [[METACLASSSCOPE#Visibility|visibility]] of the property
+
|-
+
| '''Sort order''' || Integer || set how the property should be sorted
+
|}
+
 
+
==== Priority ====
+
{| class="wikitable" width=50%
+
|-
+
! width=30% | Value !! Comment
+
|-
+
| >120 || Property is shown in the pop-up dialog if the object is classified as [[SYSCLS_TASK]]
+
|}
+
 
+
==== Visibility ====
+
{| class="wikitable" width=50%
+
|-
+
! width=30% | Value !! Comment
+
|-
+
| Visible || Property will always be shown on the mobile device
+
|-
+
| Hidden || Property will only be shown on the mobile device if [[UBIK_Client_Basics#Options|ShowSystemProperties]] is set to true
+
 
|}
 
|}
  

Revision as of 13:28, 16 December 2013

IC METACLASS.gif MetaClass Scope
Name METACLASSSCOPE
Namespace System.ACM.Scopes
Custom.ACM.Scopes
Internal Name MetaClassScope
TypeString {{{typestring}}}
RuntimeType {{{runtimetype}}}
Purpose Configure context scopes for MetaClasses
Version 2.1.13+

A MetaClassScope specifies the published meta data (MetaClass and MetaProperties) which should be accessible on the mobile device. Further, it is possible to configure the permissions granted on those objects on the mobile.

The system tries to load the most accurate MetaClassScope object, where the MetaClass of the current object serves as filter criterion. If the system can not directly locate a proper MetaClassScope it searches up the inheritance hierarchy to find the most suitable.

Specific Properties

Name Data type Optional Comment
METACLASS Guid no Reference to the according MetaClass

Classifications

If a MetaClass implements a certain classification the MetaClassScope must publish all required MetaProperties as declared by the classification. Only then the classification is known on the mobile client.

Icons

For deploying MetaClass specific icons it is necessary to create an own MetaClassScope for each MetaClass. Otherwise, the system will always deliver the icon of the most suitable MetaClassScope fitting a parent's MetaClass.

See also