QPR Knowledge Base 2017.1

Creating Custom Attribute Types and Adding Custom Attributes

Creating Custom Attribute Types and Adding Custom Attributes

Previous topic Next topic No directory for this topic  

Creating Custom Attribute Types and Adding Custom Attributes

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Before custom attributes can be used, custom attribute types must be defined in the Modeling Options dialog.

 

mouse_24 Exercise 83: Create a custom attribute type, add a custom attribute to an element, and assign values to the custom attribute.

 

BTN_AR131. Open the Custom Attributes Exercise model.
BTN_AR132. On the Model tab of the ribbon, click on Modeling Options. The Modeling Options dialog will open.
BTN_AR133. Select the Custom Attribute Types tab and click New... The New Custom Attribute Type dialog will open.
BTN_AR134. Type in the Name "Document ID" and select Number from the drop-down list:

dlg_new_custom_attribute_type

BTN_AR135. Click OK to accept the properties.
BTN_AR136. In the Modeling Options dialog, go to the Model Elements tab. Select the Activity element type and click View... The Element Type dialog will open.
BTN_AR137. Switch to the Custom Attribute Types tab and click Add... The Add Custom Attribute Type dialog will open.
BTN_AR138. Select Document ID from the list and click OK.
BTN_AR139. Click OK to close the Element Type dialog and again OK to close the Modeling Options dialog.
BTN_AR1310. Now the custom attribute type is defined. Double-click the Standard Reports element on the diagram to open the element properties dialog.
BTN_AR1311. Switch to the Custom Attributes tab.
BTN_AR1312. Select the Value column on the Document ID row and type in the value 1234.
BTN_AR1313. Click OK to close the dialog.

For creating more complex custom attributes, such as attribute sets or enumerated lists, see QPR Modeling Client - User's Guide for instructions.