Add custom objects to OMERO.mde =============================== Description ----------- By using OMERO.mde you can create standardized key-value input forms with certain values and units. You can group key-values by creating an object module with the key-values as properties. We will show in this section how to create new objects for OMERO.mde and how you could create new key-values as properties of objects. Step-by-Step ------------ #. Open the ``mdeConfiguration.xml`` file under ``config/``. #. Insert a new ```` element under ```` and specify the name for the object (here MyCustomObject):: #. Define now the properties (key-values) for your new object. For every property you have to add an ```` element. See below section Type of input fields. #. Define now in which hierarchy the object should be insert. For that define the parent element:: ... At this point we have specified an insertable object. You can insert this object with right-click on the specified parent node. If you want this object will be automatically inserted to the object tree, you have to specify this also in the *SetupConf* section of the corresponding setup:: Example ^^^^^^^ Specification like:: ... will create an insertable object at ``OME:Image`` object. |mde_customObj| that has input form for two specified key-value pairs |mde_customObj2| With the additional specification in *Configuration*:: ... will lead into following object tree if you select the setup *MyCustomSetup* |mde_customObj3| **Type of input fields** ------------------------ There are different editor input field types for the element ````. You can find this example by using the example ``mdeConfiguration.xml`` and insert a *Available InputFields* object by right-clicking on OME-Model node or it is inserted automatically when you select the setup ``Example Setup:Fields``. |mde_availableInputFields| You can specify the different types like: `TextField` define like:: `TextField with unit` define like:: `TextArea` define like:: `ArrayField` define like (for an array of 2 elements):: `ArrayField` with unit define like (for an array of 3 elements):: `ComboBox` define like:: `ComboBox` with values from ontology (OMERO.insight version >= |insight_version|):: `CheckComboBox` for multiple selection (OMERO.insight version >= |insight_version|):: .. |mde_availableInputFields| image:: images/mde_availableInputFields.PNG .. |mde_customObj| image:: images/mde_customObj.png .. |mde_customObj2| image:: images/mde_customObj2.png .. |mde_customObj3| image:: images/mde_customObj3.png