Kuika's Subtract action is used to calculate the difference between two numeric values. It allows you to perform dynamic calculations within the application. For example, in an expense tracking application, you can automatically display the current remaining balance by subtracting the expenditure from the budget allocated for a specific item. Action is ideal for producing fast and practical results in data-driven calculation flows.
Technical Specifications
1. Defining Action in UI Design
Configure Action Parameters
After a user enters the total budget and expenditure for a particular event, the system automatically calculates the remaining budget and shows it to the user. This can be done with an action triggered by the user clicking on a button after filling out the form.
Configuring the Subtract Action
Result Usage (Optional)
You can show the calculated remaining budget in a field by adding a Set Value action immediately after the Subtract action:
With this configuration, when the user enters the total budget and expenditure and clicks the "Calculate Remainder ” button, the remaining amount is calculated and displayed on the screen. This allows the user to instantly see the available balance to spend on the activity.
Technical Risks and Controls
Subtract action is one of the most frequently used actions in calculation based applications in Kuika platform. It can be used in many scenarios such as budget tracking and calculation of data differences. It adds dynamism to your application by producing powerful results with a simple mathematical operation.