Create Category

Create Category

Kuika's Create Category action is used to define a new category within the EAV (Entity-Attribute-Value) data model. This action is used to group attributes, simplify management, and create hierarchical structures. It allows fields to be classified in an organised manner, especially in large systems.

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 Specifications

  • Category Definition (EAV Panel): The Create Category action works with the following parameters:
    • Required Parameters:
      • Name (String): The name of the category to be created in the system. It should be a unique and meaningful name that identifies the category.
    • Optional Parameters:
      • Description (String): The description of the category. It is used to provide information about the category to the user or developer.
      • ParentId (Guid): The ID of the parent category of the category to be created. This field allows categories to be defined in a hierarchical structure
  • Data Source Compatibility: All parameters can be defined from the following sources via the Symbol Picker in Kuika:
    • Fixed
    • Form Component (Text Input, Select Box)
    • Screen Input
    • Action Result
    • Current
  • Web & Mobile Support: The Create Category action works in both web and mobile applications.
Create Category Action Application Steps

1. Defining Categories in UI Design Creating a Dynamic Form

  • A screen where a new category is to be added opens.
  • The following elements are added to the Dynamic Form element below:
    • Text InputCategory Name
    • Text InputDescription - Optional
    • Select BoxParent Category (ParentId) - Optional
    • Button‘Create Category’

2. Add Action

  • When the ‘Create Category’ button is clicked:
    • + ADD ACTION > OnClick > EAV > Category > Create Category action is added.
    • Parameter matches:
  • Name → Symbol Picker > Form Component > Text Input
  • Description (Optional) → Symbol Picker > Form Component > Text Input
  • ParentId (Optional) → Symbol Picker > Component > Select Box / Fixed Guid

3. Display Success or Error Result

  • When the category is successfully created, a toast notification can be displayed to the user.
  • Pre-validation can be performed for incorrect or incomplete entries (e.g., display a warning if Name is empty).
Usage Scenario: Creating Hierarchical Categories

In an administrator panel, categories are to be defined for grouping fields in the system. For example:

  • Top category: ‘User Information’
  • Subcategory: ‘Contact Information’
  • Description: ‘Contains fields such as phone and email.’
  • ParentId: ID of the ‘User Information’ category

In this scenario, the user first creates the top category, then selects the top category as the ParentId when defining the subcategory.

Create Category Action Advanced Customisations
  • Updating the Category List: After a new category is created, the category Select Box on the page can be reloaded.
  • Conditional Visibility: The category creation area can be displayed only for administrators.
  • Hierarchical Visualisation: Categories can be displayed in a tree structure.

Technical Risks

  • Empty or Duplicate Name: The Name parameter must not be left blank, and the system may return an error if a category with the same name already exists.
  • Invalid ParentId: The operation may fail if an undefined ParentId is entered.
  • Beta Version Risk: The action is in beta, so instability or temporary limitations may occur.

The Create Category action is used to organise attribute groups in a logical, organised, and sustainable manner on the Kuika platform. It ensures that the category system is defined in accordance with a hierarchical structure and can be dynamically expanded. It offers significant convenience and scalability, especially in applications that work with a large number of fields.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar