Update Category

Update Category

Kuika's Update Category action is used to update the information of a previously created category record within the EAV (Entity-Attribute-Value) data model. With this action, category names, descriptions, and hierarchical links in the system can be dynamically organised. It is ideal for applications that want to create a manageable and flexible category structure.

This action is currently available in beta and is still under development. Careful testing is recommended before use in production environments.

Technical Specifications

  • Category Update (EAV Panel): The Update Category action works with the following parameters:
    • Required Parameters:
      • Id (Guid): The unique ID of the category to be updated in the system.
      • Name (String): The new name of the category to be updated.
    • Optional Parameters:
      • Description (String): The descriptive information of the category.
      • ParentId (Guid): The ID of the parent category to which the category will be linked. Hierarchical structures can be created or modified using this parameter.
  • Data Source Compatibility: All parameters can be obtained from the following sources using Kuika's Symbol Picker interface:
    • Form Component (Text Input, Select Box, etc.)
    • Fixed (Fixed value)
    • Action Result
    • Current
    • Screen Input
  • Web & Mobile Support: The Update Category action is designed to work in both web and mobile application scenarios.
Update Category Action Application Steps

1. Creating the Update Form

  • A dynamic form is designed on the UI:
    • Select Box / Table → Select existing category
    • Text Input → Category name
    • Text Input → Description (optional)
    • Dropdown → Select parent category (optional)
    • Button → ‘Update’ button

2. Retrieving the Selected Category's Information

  • The Get Category action distributes the existing information for the selected category to the form components.

3. Add the Update Category Action

  • When the ‘Update’ button is clicked:
    • + ADD ACTION > OnClick > EAV > Category > Update Category action is added.
  • Parameter mappings are done as follows:
    • Id → Symbol Picker > Action Result > Get Category > Id
    • Name → Symbol Picker > Form Component > Text Input
    • Description → Symbol Picker > Form Component > Text Input
    • ParentId → Symbol Picker > Form Component > SelectBox
Usage Scenario: Editing Category Information

An administrator wants to add a description to the previously created category ‘User Information’ and link it to the parent category ‘Basic Information’:

  1. The ‘User Information’ row is selected in a table.
  2. The Get Category action loads the existing information into the form components.
  3. The administrator edits the ‘Description’ and ‘Parent Category’ fields.
  4. The ‘Update’ button is clicked and the Update Category action is executed.
  5. The system updates the relevant category record with the new information.
Update Category Action Advanced Customisations
  • Conditional Update: Editing permissions can be defined according to specific user roles.
  • Validation: The process can be blocked if the ‘Name’ field is empty; the system can check if there is another category with the same name.
  • Toast or Modal Notification: The user can be informed after the update.

Technical Risks

  • Empty or Invalid Id: If the Id parameter is not entered or does not exist in the system, the process will fail.
  • Empty Name: Name is mandatory and should not be left blank; the system may return an error.
  • Invalid ParentId: If an invalid or deleted parent category is selected, the system may encounter conflicts.
  • Beta Version Risk: As this feature is in beta, some scenarios may be unstable.

The Update Category action enables the maintenance and updating of categories defined according to the EAV data model on the Kuika platform. Whether you need to change names, add descriptions, or create hierarchical structures, this action offers a flexible and effective solution. Although it is in beta, it can be used safely in productive applications when used with care.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar