Set Entity Attribute Value In Dynamic Form

Set Entity Attribute Value In Dynamic Form

Kuika's Set Entity Attribute Value in Dynamic Form action is used to programmatically change the value of a specific attribute within a Dynamic Form element. This action makes it easy to perform operations such as dynamically assigning values, placing calculation results, or updating default values in forms.

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 ideal for transferring system or calculated data to specific fields on a form without requiring user input.

Technical Specifications

  • Value Assignment (EAV Panel): The Set Entity Attribute Value in Dynamic Form action works with the following parameters:
    • Dynamic Form Component (Required): The form element containing the attribute whose value will be changed.
    • AttributeId (Guid - Required): The unique ID of the attribute whose value will be updated in the system. It can be taken from fixed or dynamic sources.
    • Value (Any - Required): The new value to be assigned to the attribute field. This value can be fixed, the result of another action, a form component, or a calculation.
  • Data Source Compatibility: All parameters can be obtained from the following sources using the Symbol Picker interface:
    • Dynamic Form Component: Select the form name.
    • AttributeId: Symbol Picker > Fixed, Action Result, Screen Input, etc.
    • Value: Symbol Picker > Fixed, Component, Action Result, etc.
  • Web Application Support: The Set Entity Attribute Value In Dynamic Form action works in web applications.
Set Entity Attribute Value In Dynamic Form Action Application Steps

1. Dynamic Form Preparation

  • Add a Dynamic Form element to your project in the UI Design module.
  • This form must contain a field that matches the AttributeId value when loading attributes.

2. Define the Value Assignment Action

  • For example, a calculation is performed (e.g., salary / number of days).
  • The calculation result needs to be transferred to a Label, Input, or Dynamic Form field.
  • In this case, follow these steps:
    • + ADD ACTION > OnClick > EAV > Dynamic Form > Set Entity Attribute Value in Dynamic Form
    • Parameters:
  • Dynamic Form Component: Form name
  • AttributeId: Symbol Picker > Fixed > The GUID value of the attribute
  • Value: Symbol Picker > Action Result > For example, the result of the Divide action
Usage Scenario: Writing the Calculated Value to the Form Field

In a human resources form, the annual budget per person is calculated and this value is to be written to the ‘Budget per Person’ field in the form:

  1. When the ‘Calculate’ button is clicked, the Divide action runs.
  2. The result is transferred to the attribute field associated with the Set Entity Attribute Value in Dynamic Form action.
  3. The user sees the value and can edit it if desired.
Set Entity Attribute Value in Dynamic Form Advanced Customisations
  • Conditional Value Assignment: Different values can be assigned under certain conditions using the If action.
  • Batch Processing: Action chains can be used to assign values to multiple attribute fields at the same time.
  • User Notification: The user can be notified after value assignment.

Technical Risks

  • Attribute ID Mismatch: If the specified attribute is not loaded in the form, the value cannot be assigned.
  • Incorrect Data Type: The assigned value must match the data type expected by the attribute (e.g., assigning a String to a Boolean field may cause an error).

The Set Entity Attribute Value in Dynamic Form action offers ideal solutions for increasing form dynamism and completing system processes without user input in the Kuika platform. It is a powerful tool, especially for calculated forms, automatic filling processes, or form updates after integration.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar