Aptify release 7.1 introduces two form components namely, Text Multi Select and Text Multi Select SQL, in Aptify Web. These components support only text (nvarchar) fields. Users can manually add these components to any form template via Smart Client. When added to a form, the components allow users to select multiple options from a drop-down list.
Creating fields for the new form components
This section provides an overview of the necessary configuration settings required to ensure that the new field on a generated entity form is configured as a text field type. For each field type, follow the steps in General Steps for Creating a Field and modify the fields record as described in each section below.
Text Multi-Select SQL
Text Multi Select SQL form component uses the same approach as the Data Combo drop-down list. In this approach, the field displays a list of records from another table in the database. You should use this control if you want to provide users with a drop-down list of pre-populated items from another table. By specifying a SQL statement, you define the drop-down's list contents, and you can display more than one column from the corresponding table.
Use the following settings to create a Text Multi Select SQL form component:
- Log in to Aptify Smart Client.
- Create a new entity under the desired application and create records for the entity. For example purpose, an entity named Interest is created under Customer Management.
- Go to the entity where you want to configure the text multi select SQL field. Create a new field for example, Interest field.
- In the General tab, configure the following:
SQLData Type: Enter value as nvarchar
SQLField Size: Enter the size for this field. -
In the Values tab configure the following:
GUIType Single Select: Select Not Supported
GUIType Multi Select: Select Supported - Standard
Value List Type: Select Static List. - After creating the field, save and close the entity.
-
Configure Design in Place Edit on the entity record. Refer About the Visual Designer Data Combo Box to know about the Input Properties.
Note: The control appears in desktop as a dropdown and not as a multi-select combo box. This control is built to work ONLY in Aptify Web. - Run the Metadata Process Flows (for both the entities) so that the components are visible in Aptify Web.
- Reset the IIS and clear the browser cache.
- Log in to Aptify Web and navigate to the form where you have added the Text Multi Select SQL form component.
- Click combo box against the field and select multiple options from the list, the options are selected and arranged alphabetically.
- To remove a value, click the X icon on that particular value.
- To remove all the selected values, click the generic X icon on the combo box as shown in below screenshot.
- Click Save.
Text Multi Select
Text Multi Select combo box uses the same approach as the regular combo drop-down list, it pulls the values from the field value list.
Use the following settings to create a Text Multi-Select combo box.
- Log in to Aptify Smart Client.
- Go to the entity where you want to configure the Text Multi Select field. Create a new field for example, Education field.
- In the General tab, configure the following:
- SQLData Type: Enter value as nvarchar
-
SQLField Size: Enter the size for this field.
- In the Values tab configure the following:
- GUIType Single Select: Select Not Supported.
- GUIType Multi Select: Select Supported - Standard
- Value List Type: Select Static List.
- Create new records that need to populate under the combo box.
- Configure Design in Place Edit on the entity record. Refer About the Visual Designer Combo Box to know about the Input Properties.
- Run the Metadata Process Flows so that the components are visible in Aptify Web.
- Reset the IIS and clear the browser cache.
- Log in to Aptify Web and navigate to the form where you have added the Text Multi Select form component.
- Click combo box against the field and select the multiple values from the list, the values are selected and arranged alphabetically.
- To remove a value, click the X icon on that particular value.
- To remove all the selected values, click the generic X icon on the combo box as shown in below screenshot.
- Click Save.
⚠ Note If you create a view, the values in the text multi select field appear as sorted, comma-separated values of selections. The new form components support the contains clause while creating views with filters.
|
Comments
Please sign in to leave a comment.