Changes

HowTo:Create a new MetaProperty

928 bytes added, 1 February
/* VALUE TYPE */
== Creation of a new MetaProperty ==
A new [[MetaProperty]] has to be created as an instance from [[CUSTOMMETACLASSCUSTOMMETAPROPERTY]] using the ''[[Bulk Editor]]'' control
# Navigate to the MetaClass [[CUSTOMMETAPROPERTY]]
# It is recommenmded to set at least the description and namespace
# Save the changes with {{key press|Ctrl|S}} or the save command
 
===VALUE TYPE===
{{Version/WinXSince|4.7.0}} Since Version 4.7 we support the possibility to define the value type of a property.
 
With this property, the customizer can control how the property is displayed on the client.
 
Possible values are:
* Standard (default)
* MinNormMax (supported for string, double and int properties)
* MinMax (supported for string, double and int properties)
 
[[Category:How-To|Create a new MetaProperty]]
[[Category:Studio|Create a new MetaProperty]]
== Optional Attributes ==
Assign a reference if the value of the property should link to an {{UBIK}} object. The data type of the MetaProperty has to be ''Guid'' that the data (guid) can hold a reference to an {{UBIK}} object.
# Locate an existing or [[HowTo:Create_a_new_Reference|create a new [[Reference]]# Assign the reference to the '''REFERENCE''' attribute property either by
#* dragging and dropping the reference object onto the cell
#* selecting the desired reference from the dialog appearing after double-clicking the cell
Assign a selective list to a property, if the respective column should display a Combobox with all items of the list instead of the value field. The value can then only be selected from the list, but not be edited manually anymore.
# Locate an existing or [[HowTo:Create_a_new_Selective_List|create a new [[Selective List]]# Assign the list to the '''SELECTIVELIST''' attribute property either by
#* dragging and dropping the list object onto the cell
#* selecting the desired list from the dialog appearing after double-clicking the cell
=== UNITITEM ===
[[File:IL_HowTo_CreateMetaProperty_UnitItem_01.png|thumb|alt=Set a unit item|Set a unit item]]
Set If the property should consider a [[Unit]] (for example Ampere, Volt, etc.) the underlying [[MetaProperty]] has to incorporate a [[UNITITEM|unit itemUnit Item]] of either by
* dragging and dropping the unit item object onto the cell
* selecting the desired unit item from the dialog appearing after double-clicking the cell
 
{{Hint|Only properties of type Double can posses measuring units!}}
=== FORMAT ===
=== NEEDSVALIDATION ===
Enable [[MetaProperty#Needs_Validation|validation]] by checking the '''NEEDSVALIDATION''' attribute of the MetaProperty and let the system explicitely store a validation time stamp information in the database. This is particularly used on the mobile client in combination with the [[SYSCLS_TASK]] and [[SYSCLS_MEASUREMENTTASK]] classification.
 
{{Attention|'''NEEDSVALIDATION''' is replaced by UBIK Attribute technique since Version 2.5!}}
Learn more about [[UBIK Attributes]].
=== VALUEVALIDATION ===
* dragging and dropping the validation object onto the cell
* selecting the desired validation object from the dialog appearing after double-clicking the cell
 
 
 
 
 
 
==See also==
* [[HowTo:Create a new MetaClass]]
* [[MetaProperty]]
[[Category:How-To|Create a new MetaProperty]][[Category:UBIK Studio|Create a new MetaProperty]]
1,514
edits