Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 2500_config_apps:0700_add_edit_attributes:0100_common_props [2026/08/13 00:55] – removed - external edit (Unknown date) 127.0.0.1 | 2500_config_apps:0700_add_edit_attributes:0100_common_props [2026/08/13 07:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | [< | ||
| + | ====== Common Properties ====== | ||
| + | |||
| + | Each attribute of a business object or notification must be assigned a particular type (Plain Text, Number, Date etc). Some properties of the attributes are specific to the assigned type whereas others are common to attributes of all types. Both common and specific properties are specified in the Selection Properties window. When you select the specific attribute its properties are displayed in the window. Which properties are displayed depend on the attribute type. The following section describes properties common to all attribute types. | ||
| + | |||
| + | ===== Name ===== | ||
| + | |||
| + | Specify the name of the attribute. The following restrictions apply: | ||
| + | |||
| + | - The name must start with a character (not digit) or underscore symbol. All other symbols in the name must be either characters (including underscore symbol) or digits. No spaces or special symbols are allowed. | ||
| + | - The name must be unique among the names of other attributes of the business object or notification owning the attribute. | ||
| + | - The name cannot be one of the names reserved for system use – '' | ||
| + | - The name cannot be the name of an identifier used in '' | ||
| + | |||
| + | ===== Description ===== | ||
| + | |||
| + | Specify any text that describes what the attribute is for, the business concept that it represents, how it is used etc. Any description if defined is included into the generated documentation for the business space version – see [[2500_config_apps: | ||
| + | |||
| + | ===== Type ===== | ||
| + | |||
| + | Any attribute must be assigned a type. Choose the required type from the “Type” combo box. The list of types contains //basic types// ('' | ||
| + | |||
| + | ===== Required ===== | ||
| + | |||
| + | If you tick the “Required” checkbox // | ||
| + | |||
| + | ===== Calculated ===== | ||
| + | |||
| + | If you tick the “Calculated” checkbox the user will not be able to change the value of the attribute – the attribute will be read-only. The value of the attribute can only be changed by rules. This option is not applicable for attributes owned by notifications. | ||
| + | |||
| + | ===== Initial Value ===== | ||
| + | |||
| + | Most attribute types allow specifying the initial value of the attribute. The initial value is the value that the attribute is initialised with when an instance of the business object or notification is created. This applies both to business objects created by the user or to objects and notifications created by rules. If the user is creating an object she will see the initial value when the form of the object is displayed. She can then change this value if necessary. Be also aware of the following: | ||
| + | |||
| + | - The type and format of the initial value must correspond to the type of the attribute. | ||
| + | - Rule expressions are not allowed as initial values (with the exception of expressions that set the current date or time, such as '' | ||
| + | |||
| + | ===== Choices ===== | ||
| + | |||
| + | Most attribute types allow specifying a number of choices for the attribute value. Choices indicate that the attribute may take values from the specified list. Clicking on the “Choices“ property brings up the “Choices” dialog where you can add or delete choices. | ||
| + | |||
| + | If the “Other values allowed” checkbox is unchecked on the “Choices” dialog the attribute may not take any other values. In this case if the attribute value is different from the one specified in choices an error message will be issued to the user and the currently executing process or rules will be aborted. When no other values are allowed an attribute with choices is displayed on the form of the business object as a combo box or as radio buttons. | ||
| + | |||
| + | If the “Other values allowed” checkbox is ticked the attribute may take values different from the ones specified in choices. In this case // | ||
| + | |||
| + | It is also possible to specify different values for when a choice is displayed to the user and what is stored in the database. For example, if you have a choice of gender you can display " | ||
| + | |||
| + | It is also possible to use tag expressions as choice values – for example <code aim><< | ||
| + | |||
| + | - To add a new choice entry click on the cell in the Choices list box and type in the text of the choice entry. Press Enter to finish. To add another entry click on the next cell and type in the text. | ||
| + | - To modify the existing choice entry click on the cell containing the entry in the Choices list box, modify the text of the entry and press Enter. | ||
| + | - To delete the existing choice entry click on the cell containing the entry in the Choices list box and press the Delete button located next to the Choices list box. | ||
| + | - To change the order of entries click on the cell containing the entry and press the Up or Down buttons next to the Choices list box. | ||
| + | - If you want to add more blank entries to the list box press the “More Rows” button. | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | The type and format of a choice value must correspond to the type of the attribute.</ | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | | ||
| + | |||
| + | ==== Dynamic Choices ==== | ||
| + | |||
| + | A list of choices can be calculated at run-time rather than explicitly specified by the configurator. When the user clicks on the drop down with choices // | ||
| + | |||
| + | ==== Allow end users to add and edit choices ==== | ||
| + | |||
| + | Ticking this checkbox will allow end users to manage the list of choices in the Operation Mode. This may be necessary if the configurator does not know up front the list of choices relevant for a particular end user and he does not want end users to work with the Configuration Tool directly. If this option is on end users of particular access levels (usually the system’s administrator) will see an icon on the object form next to the attribute control. If they click on this icon a window will pop-up where they will be able to add, edit or modify a list of choices. | ||
| + | |||
| + | The initial list of choices seen by end users will be pre-populated with the choices entered by the configurator in the Configuration Tool (if any). | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | The option for end users to edit list of choices will not be available if the configurator provides her own list and specifies that “other values are not allowed”.</ | ||
| + | |||
| + | ==== Include empty text==== | ||
| + | |||
| + | Tick this checkbox to include an empty line into the list of choices to allow the user to select a " | ||
| + | |||
| + | ===== Indexed ===== | ||
| + | |||
| + | This is the database specific option for the advanced users. If the “Indexed” checkbox is ticked // | ||
| + | |||
| + | ===== Validate as ===== | ||
| + | |||
| + | This dropdown allows you to select an Input mask that will control how validation of Plain Text attributes is performed. For example, an e-mail address attribute needs to conform to the input standards of the e-mail address, some attributes need to be alphanumeric only etc. When you specify the input mask for the attribute // | ||
| + | |||
| + | |||
| + | - URL | ||
| + | - Alpha (characters only) | ||
| + | - Alphanumeric (characters and digits only) | ||
| + | - US Phone (999) 999-9999 | ||
| + | If you need to provide an input mask different from the above you can enter a regular expression defining the mask. The regular expression must start and end with the "/" | ||
| + | |||
| + | < | ||
| + | |||
| + | The information about format of regular expressions can be found in the [[8000_appendices: | ||
| + | |||
| + | If you want to re-use the same regular expression in different attributes you can assign a textual name to your expression. To do this you have to modify the UIConfig.props file located in the BIN directory of your // | ||
| + | |||
| + | < | ||
| + | |||
| + | Once you define your expression in the UIConfig.props file you need to re-start the Configuration Tool and the name of your expression will appear in the “Input Mask” combo box. | ||
| + | |||
| + | ===== SQL type ===== | ||
| + | |||
| + | AwareIM automatically manages database for all attributes that the configurator defines, so SQL types of each attribute are usually determined by default. It is, however, possible to specifically indicate an SQL type to be used for a particular attribute, for example: | ||
| + | |||
| + | < | ||
| + | |||
| + | ===== Attribute Presentation ===== | ||
| + | |||
| + | All attribute types allow specifying presentation options for the attribute. These options control how the input control displaying attribute value will be generated on a business object form. | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | | ||
| + | |||
| + | The following presentation options are common to many attributes: | ||
| + | |||
| + | ==== Label ==== | ||
| + | |||
| + | Specify the label that will be displayed next to the input control. By default it will be the name of the attribute (if this name has capital letters they will be replaced with spaces – for example, if the attribute name is AccountBalance the default label displayed will be “Account Balance”). You can also indicate an empty label. | ||
| + | |||
| + | ==== Do not add ‘:’ after label ==== | ||
| + | |||
| + | By default // | ||
| + | |||
| + | ==== Icon ==== | ||
| + | |||
| + | Specify the icon that will be displayed together with the label next to the input control. By default no icon is displayed. Click on the “Edit” button to specify the icon. | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | If you want to provide the description of the attribute click on the " | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | If the "Show description as popup window" | ||
| + | |||
| + | If the "Show description to the right of input control" | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | You can enclose attribute description in HTML tags to improve its presentation, | ||
| + | |||
| + | ==== Save form on selection change ==== | ||
| + | |||
| + | This option is only valid if an attribute has choices. Ticking this checkbox will make the sure that the form of the object will be saved as soon as the user chooses a different choice in the selection. | ||
| + | |||
| + | ==== Save form on focus loss==== | ||
| + | |||
| + | This option is only valid if an attribute does not have choices. Ticking this checkbox will make the sure that the form of the object will be saved as soon as the user moves away from the control representing the attribute. | ||
| + | |||
| + | ====Widget property (Radio buttons)==== | ||
| + | |||
| + | For many attribute types there is a " | ||
| + | |||
| + | ==== Widget property (Checkboxes)==== | ||
| + | |||
| + | This option is only available for an attribute of the Plain Text type and only if it has choices defined. Selecting this option indicates that the user can choose multiple choices and each choice is represented as a checkbox. Setting details of this option is similar to setting options of radio buttons. | ||
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| + | |||
| + | // | ||
| + | |||
| + | ==== Input control style ==== | ||
| + | |||
| + | This property allows you to define styling properties of the input control of the widget – colors, fonts, borders etc | ||
| + | |||
| + | ==== Label style ===== | ||
| + | |||
| + | This property allows you to define styling properties of the label – colors, fonts, borders etc | ||
| + | |||
| + | ==== Presentation rules ==== | ||
| + | |||
| + | This property allows you to define conditions when certain presentation elements are displayed. You need to define a condition and select the type of the presentation element that the condition applies to. Then you need to define properties of the element specific to the selected element type. If a condition is not specified the properties of the element will be applied unconditionally.The following element types are supported: | ||
| + | |||
| + | ^Setting^Description^ | ||
| + | |'' | ||
| + | | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | ==== Script ==== | ||
| + | |||
| + | For users who are familiar with Javascript this dialog allows specifying additional attribute configuration parameters when attributes are initialized and displayed. See [[: | ||
| + | |||