Delete Category

Delete Category

Kuika's Delete Category action is used to delete a previously created category record within the EAV (Entity-Attribute-Value) data model. This action ensures that categories that are no longer used or incorrectly defined in the system are cleaned up. It is important for the sustainability of category management and the organisation of the data structure.

This action is currently available in Beta and is still under development. Careful testing is recommended before using it in a production environment.

Technical Specifications

  • Delete Category (EAV Panel): The Delete Category action works with only one parameter:
    • Id (Guid - Required): The unique ID of the category to be deleted from the system.
    • This parameter is required to identify the relevant category and remove it from the system.
  • Data Source Compatibility: The Id to be used as a parameter can be defined dynamically or statically from the following sources:
    • Component
    • Fixed (A static GUID)
    • Screen Input
    • Action Result
    • Current
  • Web & Mobile Support: The Delete Category action can be used in both web and mobile applications.
Delete Category Action Application Steps

1. Creating the Interface for Category Selection

  • The following components are defined in the UI for the user to select the category they want to delete:
    • Table → Category list (contains id and name)
    • Button → ‘Delete Category’

2. Defining the Delete Category Action

  • Action to be performed when the ‘Delete Category’ button is clicked:
    • + ADD ACTION > OnClick > EAV > Category > Delete Category
  • Id → Symbol Picker > Component >Select Box

3. Displaying the Result of the Operation

  • After successful deletion, a toast notification can be displayed to the user.
  • If necessary, the category list is reloaded and the UI is updated.
Usage Scenario: Deleting an Empty or Unused Category

In the admin panel, a user wants to delete a category called ‘Test Areas’ that they created earlier but is no longer in use:

  1. Selects ‘Test Areas’ from the Category Select Box.
  2. Clicks the ‘Delete Category’ button.
  3. The Delete Category action works with the selected ID and removes this category from the system.

If there are attributes associated with this category in the system, the deletion process may be rejected or a warning may be displayed (checks should be made by the developer).

Delete Category Action Advanced Customisations
  • Conditional Deletion Control: If there are attributes associated with the category, the deletion process can be cancelled.
  • Confirmation Mode: Before deletion, the user can be asked to confirm with a ‘Are you sure?’ message.
  • List Update: After a successful operation, the category list in the UI can be automatically refreshed.

Technical Risks

  • Invalid or Missing Id: If the Id parameter is empty or not registered in the system, the operation will fail.
  • Related Records: If there are attribute records linked to the category to be deleted, the deletion process may be blocked or these links must be removed manually.
  • Beta Version Risk: As the feature is in beta, unstable behaviour may be observed in some edge cases.

The Delete Category action is used to simplify category-based management in the EAV structure of the Kuika platform and to clean up old or unnecessary definitions. Thanks to its simple structure with a single parameter, category deletion operations can be performed quickly and effectively. Despite being in beta, it is a powerful tool for ensuring the sustainability of the data model.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar