User Manual

Sum

27/6/25
Sum

Kuika's Sum action provides a practical solution to calculation needs within the application by summing two numeric values. With this action, the sum of the values received from the user or defined in the system can be calculated dynamically. It is widely used especially in sales, scoring, cost or calculation-based scenarios. It is an effective tool to automate calculations for in-app data flow and user experience.

Technical Specifications

  • Numeric Value Addition: Calculates the sum of two specified values. Values can be entered as constant or can be taken from forms, components or action outputs from the user.
  • Data Source Compatibility: Form components, screen inputs, action outputs or fixed values can be bound to Value and Value2 fields.
  • Web & Mobile Support: The action is compatible and works seamlessly on both web and mobile apps.

Sum Action Implementation Steps

1. Defining Action in UI Design

  • Open your project on the Kuika platform.
  • Switch to the UI Design module and select the relevant screen.
  • Create a button or action field that will trigger the summation process (for example: “Calculate Sum”).
  • Select the relevant component (e.g. button).
  • From the+ ADD ACTION menu, select the Arithmetic → Sum action according to the triggering event (Initial Actions, OnClick, etc.).

Configuring Action Parameters

  • Value (Decimal - mandatory): The first numeric value of the aggregation. Data can be imported into this field primarily from data sources such as Action Result. Other sources such as Method Input, Current, Screen Input, Fixed or Component can also be used. These categories can be defined by selecting them via Symbol Picker .
  • Value2 (Decimal - mandatory): The second numeric value of the addition operation. Data can be imported into this field primarily from data sources such as Action Result. Other sources such as Method Input, Current, Screen Input, Fixed or Component can also be used. These categories can be defined by selecting them via Symbol Picker.

Usage Scenario: Collecting Product Prices

In an e-commerce application, as the user adds products to the shopping cart, the price of each product is written to a form component. When the “See Total Cost” button is clicked, the system summarizes these values with the Sum action and shows the total cost to the user.

Example Application:

  1. Enter the UI Design module and create a Number Input field for two price entries.
  2. Drag and drop a Button. Write “Calculate Total” as Label.
  1. Select the button, add the action OnClick → Arithmetic → Sum.
  2. Value: Symbol Picker > Components > Number Input
  3. Value2: Symbol Picker > Components > Number Input
  4. Create a Label to show the result and display the output of the Sum action here.

Sum Action Advanced Customizations

  • Summing Multiple Values: If you want to sum more than two values, you can chain multiple Sum actions or treat them as a list and use special calculation methods.
  • Form Automations: Sum action can be bound with OnBlur or OnChange events for automatic sums triggered as the user fills a field in the form.
  • Dynamic Calculations: You can create an interactive experience by using it in price, point or score calculations that change according to the user's choices.

Technical Risks and Controls

  • Data Type Mismatch: Make sure that Value and Value2 fields are numeric (decimal/integer) values.
  • Null Values: Empty or null values may cause errors during aggregation. Defining a default value is recommended.
  • Visual Update: If the calculated result is to be displayed to the user, the relevant component must be updated.

Sum action is an effective tool to enhance user experience by performing fast and dynamic calculations in Kuika applications. It can be easily used in many scenarios thanks to its flexible configuration options and cross-platform compatibility.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar