Set Entity Attribute Value

Set Entity Attribute Value

Kuika's Set Entity Attribute Value action is used to update or assign the value of an attribute belonging to a specific entity in the system. This action allows dynamic data to be recorded and updated in a flexible manner.

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 plays a critical role in matching user entries with data, sending data from dynamic forms to the backend, and customised data management.

Technical Features

  • Attribute Value Setting (EAV Panel): The Set Entity Attribute Value action works with the following required parameters:
    • EntityId (Guid - Required): The unique ID of the entity to which the value will be assigned.
    • AttributeId (Guid - Required): The ID of the attribute to which the value will be assigned.
    • Value (Any - Required): The new value to be assigned to the attribute. The data type must be compatible with the DataType of the attribute (e.g. String, Integer, Boolean, Date, etc.).
  • Data Source Compatibility: All parameters can be retrieved from the following sources using the Symbol Picker:
    • Form Component (data entered by the user)
    • Action Result
    • Fixed
    • Current
  • Web & Mobile Support: The Set Entity Attribute Value action works in both web and mobile applications.
Set Entity Attribute Value Action Application Steps

1. Get Input from User

  • Data is collected from the user using form components (e.g. text box, date picker).
  • The data obtained from the form is transferred to the Value parameter.

2. Add Action

  • Add the following action to the ‘Save’, ‘Update’ or form submission button:
    • + ADD ACTION > OnClick > EAV > Entity Attribute Value > Set Entity Attribute Value
  • Parameters are set:
  • EntityId: Symbol Picker > Form Component / Select Box / Action Result
  • AttributeId: Symbol Picker > Select Box / Fixed
  • Value: Symbol Picker > Form Component

3. Using the Result

  • If the operation is successful:
    • An information message can be displayed (Show Toast)
    • Page redirection can be performed
    • The form can be cleared (Clear Dynamic Form)
  • If there is an incorrect entry, a warning can be displayed to the user.
Usage Scenario: Profile Information Update

A user updates the ‘Phone Number’ field in their profile:

  1. The user enters the number in the form component.
  2. The ‘Update’ button is clicked.
  3. The Set Entity Attribute Value action is executed.
  4. The new phone number is saved to the relevant entity and attribute.
Set Entity Attribute Value Action Advanced Customisations
  • Conditional Value Assignment: A different value can be assigned if a specific condition is met (with If actions).
  • Multiple Value Update: All form fields can be updated by chaining different Set Entity Attribute Value actions.
  • Feedback Mechanism: After successful updates, the user can be shown a ‘Your information has been successfully updated’ message.
  • Automatic Value Retrieval from Form: The Value parameter can be retrieved directly from the dynamic form and matched with the form component ID.

Technical Risks

  • Missing or Invalid IDs: If EntityId and AttributeId are missing or not registered in the system, the operation will fail.
  • Data Type Mismatch: If the entered Value does not match the defined DataType of the attribute, the system may return an error.
  • Empty Value Issues: Assigning empty values to required attributes can lead to data inconsistencies (especially for attributes where IsRequired=true).

The Set Entity Attribute Value action is one of the most fundamental parts of Kuika's dynamic and user-specific data management infrastructure. It is a flexible and powerful tool that simplifies data updates, especially in applications that use the EAV model.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar