Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Widget Connector url https://www.youtube.com/watch?v=u7pd5VEfhYs&feature=emb_logo
Choice is .... It is used for... In SimpleOne interface, it is displayed as a drop-down list.
There are two ways to define a set of choices for the drop-down lists:
- by inheriting values from a parent table (if current table is a child to another one)
- by creating a set of records for this field in the Choice Options dictionary
- by defining a source table and its columns in the Type Specification tab.
In the second case, you may need to create a different set of choices if the column is inherited and has predefined options. See Defining an override for choice fields to learn more.
In the third case, the available options are taken from a particular column of a source table, as represented below:
Create a choice column
This field can contain all kinds of symbols. If the string length is not set then it is limited to 80 symbols.
- Navigate to System Definition → All Columns.
- Click New, and fill in the fields.
- Click Save or Save and Exit to apply changes.
Info |
---|
You can also find the form this way:
Please note that in this case, you will need to fill in the Table field manually. |
Column form fields
Field | Mandatory | Description | ||
---|---|---|---|---|
Table | Y | Specify the table name that will be a parent for this column. This field is a reference to the Tables dictionary (sys_db_table). | ||
Column Type | Y | Specify a column type. The column type specifies the type of the data stored. Depending on the type selected, additional tabs or fields may appear on the form. For more information, see the Field Types article. | ||
Title | Y | A column title displayed on the form. It is preferred to be sensible and human-readable. This field is mandatory. Latin, Cyrillic, [0..9] numbers, and the underscore symbol ( _ ) are allowed. | ||
Column Name | Y | A system column name. It is preferred to be human-readable and keep the kind of stored data. Latin letters, [0..9] numbers, and the underscore symbol ( _ ) are allowed. | ||
Active | N | Select this checkbox, and customizing of this field displayed on the form and list will be possible. If unselected, then such a field will be not available for choosing in Form Layout or List layout. | ||
Read Only | N | Select this checkbox to make the field read-only. | ||
Mandatory | N | Select this checkbox to make the field mandatory. | ||
Full Text Search | N | Set this attribute equal to TRUE to make it possible to perform a Global Search against the current column. | ||
Display by Ref | N | When a record references to another record and the table or column containing this record has the attribute Display by Ref equal to TRUE, then the column value will be displayed. If a table contains a field that has Display by Ref = TRUE, the value of this field will be displayed when referencing this table in the Reference field of the referencing table. | ||
Unique | N | When turned on, no way to add a record with a value of this field, if a record with the same value already exists. | ||
Comments | N | Write a comment with the additional information to a problem. | ||
Type Specification tab | ||||
Choice Table | N | Reference to a table. | ||
Choice Type | Y | Available options:
If the Dropdown without --None-- is chosen, the Dafault value tab becomes mandatory. | ||
Choice Field | Y | Reference to the specified field of the table. Its values will be available for the Choice field. | ||
Default Value tab | ||||
Default Value | N | The field is not mandatory if the Choice Type is Dropdown with --None--. | ||
Use Dynamic Default | N | Check this box to display the Dynamic Default field. | ||
Dynamic Default | N | This field appears only when the Use Dynamic Default attribute is set to TRUE. Select the script from the Dynamic Default Values (sys_default_value_dynamic) dictionary, so its execution result will be automatically calculated and entered into this field. This value will be the default value for the column specified.
|
Create a choice option
Note |
---|
Before creating a set of options for a particular table and column, please make sure that this column is already created (navigate to System Definition → All Columns). |
To create a choice option for a column table, please perform the following steps:
- Navigate to System Definition → Choice Options.
- Click New, and fill in the fields.
- Click Save or Save and Exit to apply changes.
Tip |
---|
An easier way to quickly create a set of options for the same column is to use Insert and Stay:
You can also use this way to create a translation for the choice options. After saving the record, click Insert and Stay, enter the translation in the Title field and specify the two-symbol name of the language in the Language field. Please note that the Value field has to remain unchanged. |
Choice option form fields
Field | Mandatory | Description |
---|---|---|
Table | Y | Specify the table to which this choice option is related. Select the same table for the translated version as for the original one. |
Column | Y | Specify the column to which this choice option is related. Select the same column for the translated version as for the original one. |
Title | Y | Type the translation of the source field there. |
Language | Y | In there, specify the two-symbol name of the language (ru, en, and so on). Generally, references to languages are stored in the Languages (sys_language) table. |
Value | Y | Type the same value as specified for the source field. |
Order | Y | Enter the number to define the option order in the choice list. |
Hint | N | Text hint. This field is not mandatory. |
Defining an override for choice fields
Override allows to override column value and attributes in the child tables extended from the base table. For example, the parent table has the following options for a choice column State: Registered, Rejected, Processed. A column override changes these values to Draft, New, Assigned, Completed in the child table.
To create an override, please perform the following steps:
- Navigate to the column you want to create an override for.
- Scroll down to the Related Lists area and choose the Choice tab.
- Click New and fill in the fields.
- Fill in the field Table with the name of the table you need to make an override for.
- Click Save or Save and Exit to apply changes.
Info |
---|
You also can find the form this way:
Please note that in this case, you will need to fill in the Task and Column fields manually. |
If changing of the column attributes is needed, please perform the following steps:
- Navigate to the column you want to create an override for.
- Scroll down to the Related Lists area and choose the Column Override tab.
- Click New and fill in the fields.
- Click Save or Save and Exit to apply changes.
Column Override form fields
Field | Mandatory | Description |
---|---|---|
Base Table | Y | In this dictionary field, you can select the uppermost (in terms of inheritance) table containing the field to override. |
Table | Y | In this dictionary field, you can select the child table that will be affected by overriding. |
Column | Y | In this dictionary field, you can select a column to be overridden. |
Display by Ref Override | N | Select this checkbox if you need to override the Display by Ref setting which is responsible for what column will be displayed instead of reference IDs. |
Default Value Override | N | Select this checkbox to display the Default Value field, which overrides the default value for the field on the extended table. After selecting this checkbox, the Default Value field appears. Enter the default value that will override the original one. |
Reference Qualifier Override | N | Select the checkbox to display the Reference Qualifiers fieldset, which overrides the reference qualifier for the field on the extended table.
|
Mandatory Override | N | Select the checkbox to display the Mandatory field, which overrides whether the field on the extended table must contain a value to save a record. |
Read Only Override | N | Select this checkbox to display the Read Only field, which overrides whether a user can change the field value on the extended table. |
Dependent on Column ID Override | N | Select this checkbox to display the Dependent on Column field, which overrides the field on which the current field depends. |
Choice list translation
To localize a choice list, please complete the steps below:
- Navigate to System Definition → Choice Options.
- Click New and fill in the field.
- Make sure the Value fields of an option in both languages are equal.
- Click Save or Save and Exit to apply changes.
- Repeat steps 2 – 4 for the rest of the options on the list.
Tip |
---|
An easier way to quickly localize a set of options for the same column is to use Insert and Stay.
Please note that the Value field has to remain unchanged. |
Tip |
---|
If some of the choice options were not localized (for example, some added choice options in English but didn't add their translations), then in user locale other than English, choice lists containing untranslated options will display them in English by default, regardless of the current user locale. To avoid this, please be careful when adding options to your choice lists. |
Table of Contents | ||
---|---|---|
|