AppMill Documentation : Custom Multi

Access

Click Alias Management > Custom Multi to manage custom aliases that return array of values.

Table of Contents

Overview

The Custom Multi Alias functionality is related to multi values (column, array) that can be calculated either with an SQL query or via Alias Framework module. The Custom multi are handled in the same way as the custom generated aliases but they return an array (column) of values similar to standard Array Alias functionality. For more information about the Alias Management, open the Alias Management Overview page of the User Manual.

Search

You can search for a particular Database Field Alias or filter search results. For this, use any of the search filters such as Alias Code, Description, Info, Format type, Database Table, Database Field and click the Enter key or on any screen place. The screen displays search results if found. To have an overview of all Database Field alias existing the system, leave the filters empty.

Sort Search Results

You can sort search results by the columns in ascending (arranged from the smallest to the largest number and alphabetically for letters) or descending (arranged from the largest to the smallest number and in reverse alphabetical order for letters) order. Columns' names, by which search results can be sorted, are indicated with arrows. Click the appropriate column name to sort search results by it.

Navigate

Use the navigation bar at the bottom of the Overview page to navigate through the pages. Click the appropriate page number to open it. Use the Arrow icons to go to the next page or the previous page of the search results list accordingly.

Create Custom Multi Alias

Click the Create button on the Overview page to create a new Database Field alias. This opens the page in creation mode.

Alias Details Tab

Fill in the following fields:

  • Alias Code - fill in the Alias Code according to the naming convention: AliasType.TableName.TableColumn format, e.g. Multi.ABC123.name.

    • AliasType is Multi in this case, and means that the custom alias returns array of values.

Please note that the value in the Alias Code field will be updated automatically after selecting the Database Table and Database Field values.

The value in the Alias Code field must be filled in according to the naming convention. For more information about the naming convention, refer to the Alias Naming Convention section on the Alias Management Overview page of the User Manual.
I.e., if the values in the Database Table or Database Field that users selected include the "_" character (e.g., “table_Search”, “field_1”), then the Alias Code field value will automatically be entered according to the selected ones and will be “Multi.table_Search.field_1”. However, this may conflict with the established naming convention. In this case, users are required to manually update the Alias Code field value according to the naming convention, excluding the "_" character. So, the correct Alias Code field value will be “Multi.tableSearch.field1”.

Be aware that the Alias Code value can be edited only in the alias creation step.

  • Type - the type is pre-selected with Custom Generate value. More information about other alias types can be found in the Alias Types section of the Alias Management Overview page of the User Manual.

  • Description - enter a description for the alias you are creating.

  • Info - add additional helpful information.

  • Format Type - fill in a data format type (e.g. character, numeric, etc.). It depends on data to be evaluated.

  • Database Table - select the database table that is used to evaluate the data.

  • Database Field - after the database table selection, you are able to select the database field from the drop-down list.

  • Default Group/User is no access - select the check box to define, whether all groups/users are restricted from viewing the data that is stored in this alias. This setting can be overridden using the Special Access Restrictions.

  • Default Value is no access - select the check box to specify that all alias data is restricted no matter what the data (value) for the alias is. This setting can be overridden using the Special Access Restrictions.

  • Evaluation

The Evaluation section represents the custom alias evaluation, which refers to how the custom alias will be evaluated. Custom Alias can be calculated either with an SQL query or inside an Alias Framework module

Depending on the selected module, Alias Framework will invoke the specific language interpreter for Python/PHP/JavaScript/Cobol to execute a script; or execute the C++ or C# module.

Note that if an AF Module is used, the alias name should correspond to the library and function name.

In case the module will be used to fill in the search values, users should create an additional custom multi alias to activate the search query aliases. For more details about search query aliases, refer to the Key Points section on the Search Screen Configuration page of the User Manual.

In order to avoid unexpected behavior and errors that are difficult to identify, it is recommended to leave the SQL Statement field empty when using the module to receive data.

After filling in the required and optional data, click the Submit button to save the Custom Generated Alias. To return to the Overview page without saving, click the Back link. 

Alias Dependency Tab

On the Alias Dependencies tab, you can define the dependencies that are needed in order to evaluate the custom alias. It is important to mention that when an SQL query is used to evaluate the custom alias there is no need to specify dependencies, they will be automatically created from the SQL query.

Pay attention that the dependencies on the alias level are defined only for custom aliases (Custom and Multi).

Fill in the following fields to define the dependencies:

  • Primary Table - select the Primary Table, the value of which will be used to evaluate the custom alias.

  • Depends On - This field is used to select an alias, on which the custom alias depends on.

The custom alias cannot be evaluated without the values of the depending alias.

  • List of Dependencies
    After selection, click the Add to List button to add the alias to the Dependencies list. The added dependency will be displayed in the List section. This setup is usually done so that the AF Module is called after all of the other data is ready.

You need to define the group of values as a dependency, add several values to the List and click the Group Dependencies button.

  • List Groups - this is the final dependency for a particular primary table.
    The selected group of values will be displayed in the table of the List Group section.

    • Depends On - represents the fields which the alias is depending on.

    • Primary Table - the database table that is selected for dependency.

Special Access Restrictions Tab

Fill in the following fields:

  • Entity - define an entity for the special access. Here, specify the name of user/group or the value on which the restriction should be applied.

  • User/Group/Value - select the area of restriction: User, Group or Value.

  • Rights - define the level of access:

    • No Access - the complete restriction to the data evaluated with help of alias.

    • Read Only - the possibility to view the data without ability of editing.

    • Update/All - all available actions are allowed.

After filling in the required data, click the Add to List button to save the Access Restrictions. The saved data will be displayed in the List below.

To delete the Added entry, click the Minus button for the corresponding line.

To return to the Overview page without saving, click the Back link. 

Alias Restriction

Fill in the following fields:

  • Entity - define an entity for the special access. Here, specify the name of user/group restriction should be applied.

  • User/Group/Value - select the area of restriction: User, Group or Value.

  • Value - define the value that should be restricted.

Here the user has the option to specify an operator and a value.

For example, the value defined as “< 10” means that if the alias value is less than 10, the selected user/group will have selected access right. At the moment the supported operators are: ==, !=, <, >, <=, >=.

  • Rights - define the level of access:

    • No Access - the complete restriction to the data evaluated with help of alias.

    • Read Only - the possibility to view the data without ability of editing.

    • Update/All - all available actions are allowed.

After filling in the required data, click the Add to List button to save the Access Restrictions. The saved data will be displayed in the List below.

To delete the added entry, click the Minus button for the corresponding line.

To return to the Overview page without saving, click the Back link.


After filling in all required and optional data, click the Submit button on the Alias Details tab to save the Database Field alias.

To return to the Overview page without saving, click the Back link. 

Copy Custom Multi Alias

To copy a Custom Multi alias, click the Copy icon for the selected Custom Multi alias entry on the Overview page. The Copy Custom Multi alias opens for editing. Fill in the fields and click the Submit button.

Update Custom Multi Alias

To update a Custom Multi alias, click the Edit (pencil) icon for the selected Custom Multi alias entry on the Overview page. The Update Custom Multi alias opens for editing.

After making the necessary changes, click the Submit button. To return to the Overview page, click the Back link. 

Delete Custom Multi Alias

To delete a Custom Generated alias, click the Delete icon on the Overview page for the selected entry. The confirmation pop-up will appear where you can confirm or cancel the Delete action.