Get Attribute Data Type

Get Attribute Data Type

Kuika's Get Attribute Data Type action is used to retrieve a list of data types that can be used when creating attributes within the EAV (Entity-Attribute-Value) data model. This action is ideal for tasks such as allowing users to select data types when creating dynamic form fields.

This action is currently available in beta and is still under development. It is recommended to test it carefully before using it in a production environment.

Technical Features

  • Get Data Type List (EAV Panel): The Get Attribute Data Type action does not take any parameters. When executed, it retrieves all data types that are available in the system. Examples of returned data:
    • String
    • Integer
    • Decimal
    • Boolean
    • Date
    • These data types can be used for the DataType parameter when creating attributes.
  • Data Source Compatibility:  The data returned by the action can be used with the following components:
    • Select Box
    • Table / Grid
    • Label / Text Input (for informational purposes)
  • Web & Mobile Support: The Get Attribute Data Type action works in both web and mobile applications.
Get Attribute Data Type Action Application Steps

1. Define the Action in UI Design

  • Open your Kuika project.
  • In the UI Design module, create a screen where the data type will be selected.
  • For example, create a button named ‘Get Data Types’.
  • To make it work when clicked: + ADD ACTION > OnClick > EAV > Attribute > Get Attribute Data Type action.

2. Using the Results

  • Add a Select Box element.
  • Link the Get Attributes Data Type action result to the Value field.
  • The user can select a data type from this Selectbox and transfer this value to the DataType field in the Create Attribute action.
Artificial Intelligence Assistant in Data Type Identification

Activate Generate with AI to be able to use the AI assistant. The AI assistant analyzes the name of the data you enter and suggests the appropriate data type. If it cannot find a suitable data type, it will default to the String data type.

Examples:

  • PersonName: AI assistant automatically assigns the String data type.
  • BirthDate: AI assistant recommends DateTimeOffset data type.
Get Attribute Data Type Advanced Customisations

Conditional Visibility: Different elements can be displayed depending on the selected data type (e.g. display a calendar component if Date is selected).

  • Form Automation: The DataType field of the Create Attribute action can be automatically populated based on the selected data type.

Technical Risks

  • Beta Version Risk: Since the feature is still in beta, new data types may be added or some data types may be removed.
  • Empty List: In rare cases, the list may be empty due to a system issue; in this case, the user should be provided with appropriate information.
  • Data Compatibility Issues: The data format linked to the dropdown component must match the structure expected by the component (e.g., Label and Value).

The Get Attribute Data Type action provides significant convenience when creating dynamic forms and user-defined fields in the Kuika platform that are compatible with the EAV model. Its parameter-free, simple structure and system compatibility make it an ideal solution for developing form automations and user-friendly screens.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar