Create and assign custom properties
For most controls, you must specify the properties to be displayed by the control. Some are offered automatically, others you must create explicitly beforehand.
Select source property
- Open the form using the Design context menu command.
- Click on a control and show its properties.
- Open the General entry. Under Content or Relationship, use the […] button to select a property to be displayed in the form.
The property is displayed in the form.
- If you want to remove the set property again, click Reset.
Create user-defined property
Some controls require user-defined properties that you must create specifically for the stereotype. These include the following controls:
- ReferringElements
- DateTimeBox
- Link
ReferringElements – Creating a reference property type
If you want to use the ReferringElements control element, you’ll require an inverse property. You can create this property in the stereotype of the relevant element. If, for example, you want to reference requirements, create the property in the Requirement stereotype.
-
Open the Stereotypes view and select the stereotype under DomainElement or Artifact.
-
Select the context menu command Properties and switch to the Reference Property Types tab page.
-
Create a new reference property type here using the plus button and select Reference as the type.
-
In the column Stereotype of the referenced element, select the stereotype of the element that is to be referenced by your element.
-
Then enter a name under Inverse Property.
If you open the requirement or other artifact using the standard form, you can find the referenced elements on the Further Properties tab.
DateTimeBox – Creating Date type
If you want to use the DateTimeBox control, you need a Date or DateTime property. The property determines the format in which the date is saved in the form. If you only want to enter a date, create the property of type Date. If you also want to enter a time, select the DateTime type when you create the property.
- Open the Stereotypes view and select the stereotype under DomainElement or Artifact.
- Select the context menu command Properties and click on the Property Types tab.
- Create a new reference property type here using the plus button and select Date or DateTime as the type.
- Click OK.
Link – Creating a link
- Open the Stereotypes view and select the stereotype under DomainElement or Artifact.
- Select the context menu command Properties and click on the Property Types tab.
- Use the plus button to create a new property type and select Hyperlink as the type.
- Click OK.