Create Attribute Action Application Steps

1. Define the Action in UI Design

  • Open your project on the Kuika platform.
  • Go to the UI Design module.
  • Select the screen where you want to create a new attribute.
  • For example, create a button named “Create Field.”
  • To make it work when clicked: + ADD ACTION > OnClick > EAV > Attribute > Create Attribute.

2. Configuring Action Parameters

Action parameters can be defined dynamically or statically using the Symbol Picker tool. Below are example definition methods and usage purposes for each parameter:

  • Name (Required):The text field where the user writes the attribute name via the form.
    • Symbol Picker > Form Component > Text Input
    • Example: “reference_number”
  • DataType (Required): This parameter determines the data type of the attribute. It must be assigned a fixed value.
    • Symbol Picker > Fixed > ‘String’ (or “Integer,” “Decimal,” “Boolean,” etc., depending on the supported data types)
    • Example: “Integer”
  • Description (Optional): Text field where the user can enter a description about the attribute.
    • Symbol Picker > Form Component > Text Input
    • Example: “Specifies the number of references for the person”
  • CategoryId (Optional): The category ID to which the attribute belongs can be a fixed value or the user can make a selection.
    • Symbol Picker > Fixed > Guid or Symbol Picker > Component > SelectBox
    • Example: “cd253d3b-6a9a-48d2-afe7-e8303f2e9094”
  • IsRequired (Optional): This field determines whether the attribute is required.
    • It can be set to true/false or the user can select a key.
    • Symbol Picker > Fixed > true/false or Component > Switch
    • Example: true
  • DefaultValue (Optional): The default value of the attribute. It can be set to a fixed value or taken from user input.
    • Symbol Picker > Fixed or Component > Text/Number Input
    • Example: 0 (for Integer) or “Unknown” (for String)

3. Creating an Attribute in the System

Based on the defined parameters, a new attribute record is created in the system. This process allows customized data entry without changing the database schema.