Get Entity Attributes

Get Entity Attributes

Kuika's Get Entity Attributes action is used to retrieve a list of all attributes belonging to an entity. This action allows you to dynamically retrieve all defined fields of a specific entity and create dynamic forms, filtering interfaces, or customisable data entries.

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

This action is one of the basic components for attribute management in the EAV model and is especially used when creating dynamic forms.

Technical Features

  • Attribute Listing (EAV Panel): The Get Entity Attributes action works with the following parameter:
    • EntityId (Guid - Required): The unique ID of the entity whose attributes will be retrieved. It can be retrieved from fixed or dynamic sources via the Symbol Picker.
  • Data Source Compatibility: The EntityId parameter can be retrieved from:
    • Symbol Picker > Form Component
    • Select Box / Fixed / Action Result / Current
  • Web & Mobile Support: The Get Entity Attributes action works in both web and mobile applications.
Get Entity Attributes Action Application Steps

1. Entity Selection in the UI

  • A Select Box or table is prepared where the user can select an entity.
  • The id information of the selected entity is retrieved.

2. Action Definition

  • + ADD ACTION > OnClick / OnLoad > EAV > Entity Attributes > Get Entity Attributes
  • The EntityId parameter is determined via the Symbol Picker.

3. Using the Action Result

The attribute list can be used with Dynamic Form, Table, Select Box elements or the Set Value action.

  • Example output: [ id, name, dataType, isRequired, defaultValue , ... ]
Usage Scenario: Creating a Dynamic Form

When a user wants to fill out a form for a specific entity:

  1. The user selects the entity.
  2. The Get Entity Attributes action runs.
  3. All attribute information for the selected entity is loaded into the dynamic form element.
  4. The form structure is automatically generated.

Get Entity Attributes Action Advanced Customisations
  • Conditional Loading: The action is not executed unless the entity is selected (controlled with If).
  • Attribute Filtering: If desired, only attributes of a specific data type or name can be displayed with Filter actions.
  • UI Update: The number and type of components can be dynamically created according to the incoming attributes.

Technical Risks

  • Missing EntityId: Attributes cannot be retrieved if the ID is empty or invalid.
  • Related Data Mismatch: The data types of attributes must be compatible with the Dynamic Form element.
  • Performance: Listing performance should be carefully tested if there are a large number of attributes.

The Get Entity Attributes action is one of the fundamental steps in setting up dynamic forms and data structures in Kuika's EAV architecture. It enables the creation of customised and flexible interfaces by systematically retrieving all fields of a specific entity.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar