Jump to: navigation, search

Difference between revisions of "HowTo:Create a new ReferenceViewItem automatically"


m
 
(6 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
== Link property selection ==
 
== Link property selection ==
  
There are three possible outcomes for the choice of the link property:
+
A window will appear where you can choose between existing link properties which will fit and you want to use as reference for the [[REFERENCEVIEWITEM|ReferenceViewItem]]. You can select one by clicking on its Radiobutton (you can only select one item) then confirm your choice with "OK". If there is no link property you want to use, you can select "Create new link property" and a new link property will be created automatically as CUSTOMMETAPROPERTY with a REFERENCE to the drop target MetaClass.
# If there does not exist any fitting reference link property on the dragged MetaClass you will get a warning message that you will have to create one and enter its name into the “Reference” property of the just created [[REFERENCEVIEWITEM|ReferenceViewItem]] manually.  
+
If you do not want to use any property you can just close the window and the Reference property of the [[REFERENCEVIEWITEM|ReferenceViewItem]] will be left empty.
# If there already is a fitting link property on the dragged MetaClass, this one will be used automatically.
+
# If more than one fitting link property exist, you will be asked which one you want to use as reference. You can select one by clicking on it. If you do not want to use one of these properties you can just close the window and the Reference property of the [[REFERENCEVIEWITEM|ReferenceViewItem]] will be left empty.
+
  
[[File:DragDropViewItemPropertySelection.png]]
+
[[File:SingleselectionWindow1.png]]
  
 
== View selection ==
 
== View selection ==
Line 24: Line 22:
 
After that a second Window will appear where you can choose multiple existing [[VIEW|Views]] to which you want to add the just created [[REFERENCEVIEWITEM|ReferenceViewItem]] by checking them and confirming with the "OK" button. If you do not want to add the [[REFERENCEVIEWITEM|ReferenceViewItem]] to a [[VIEW|View]], you can just close the window.
 
After that a second Window will appear where you can choose multiple existing [[VIEW|Views]] to which you want to add the just created [[REFERENCEVIEWITEM|ReferenceViewItem]] by checking them and confirming with the "OK" button. If you do not want to add the [[REFERENCEVIEWITEM|ReferenceViewItem]] to a [[VIEW|View]], you can just close the window.
  
[[File:DragDropViewItemViewSelection.png]]
+
[[File:MultipleselectionWindow.png]]
  
 
The process is done and a [[REFERENCEVIEWITEM|ReferenceViewItem]] is created and added to the [[VIEW|Views]] automatically. The changes are saved automatically.
 
The process is done and a [[REFERENCEVIEWITEM|ReferenceViewItem]] is created and added to the [[VIEW|Views]] automatically. The changes are saved automatically.

Latest revision as of 11:30, 15 April 2024

One of the Drag and Drop Actions in UBIK 4.8 and above is the automatic creation of new ReferenceViewItems.


[edit]

Instructions

Trigger

It can be triggered by dragging the designated child MetaClass onto the designated parent MetaClass. Confirm your decision to create a ReferenceViewItem by clicking on the upcoming context menu item “Create Reference View Item and add it to a View”.

DragDropViewItem.png

Link property selection

A window will appear where you can choose between existing link properties which will fit and you want to use as reference for the ReferenceViewItem. You can select one by clicking on its Radiobutton (you can only select one item) then confirm your choice with "OK". If there is no link property you want to use, you can select "Create new link property" and a new link property will be created automatically as CUSTOMMETAPROPERTY with a REFERENCE to the drop target MetaClass. If you do not want to use any property you can just close the window and the Reference property of the ReferenceViewItem will be left empty.

SingleselectionWindow1.png

View selection

After that a second Window will appear where you can choose multiple existing Views to which you want to add the just created ReferenceViewItem by checking them and confirming with the "OK" button. If you do not want to add the ReferenceViewItem to a View, you can just close the window.

MultipleselectionWindow.png

The process is done and a ReferenceViewItem is created and added to the Views automatically. The changes are saved automatically.


See also