Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

In noKodr, Variables are data placeholders that can be used to store and manipulate values within the application. Interaction between different components, workflows, and events. Variables can be used to pass data between different parts of the application, control logic in workflows, and adjust how components display or behave.

variables.png

Note: You may encounter precreated variables within the system. These prebuilt variables are locked, meaning they cannot be modified or deleted. They are provided as reference points to assist you in creating new variables. You can use these precreated variables as templates, making necessary modifications to fit your requirements, such as adding the required fields to your forms.

Key Uses of Variables:

  • Data Storage: Store values such as user inputs, calculations, or data retrieved from external sources.

  • Dynamic Content: Use variables to dynamically update content on the layout based on user interactions or other event triggers.

  • Workflow Control: Control the flow of processes in workflows by using variables to make decisions, trigger actions, or modify data.

  • Component Interaction: Pass data between components, allowing them to interact and respond to changes in real time.

Variables are essential for creating flexible and dynamic applications in noKodr, enabling more sophisticated and responsive designs.

Variable Config:

image-20240816-095124.png

Field Name

Description

Label

A user-friendly name for the variable, used for easy identification within the application.

Name

The unique identifier for the variable, typically used in code or within merge text.

Field Type

Specifies the type of data the variable will hold (e.g., text, number, date,etc).

Reference: Field Types

Default Value

The initial value assigned to the variable, applied if no other value is provided.

Is Array

Checkbox that indicates whether the variable can store multiple values (an array) instead of just one.

Variable Scope

The Variable Scope defines the accessibility of the variable, with the following options:

In: The variable is used to receive input from another layout.

Out: The variable is used to pass data from the current layout to another layout.

In/Out: The variable is used for both input into and output from a layout, allowing for full bidirectional data flow.

Field Types:

Data Type

Description

Text

Stores a string of characters, such as names or descriptions.

Checkbox

Represents a boolean value (true/false) typically used for on/off or yes/no selections.

Integer

Holds whole numbers without decimals, used for counting or numerical calculations.

Double

Stores numbers with decimals, allowing for more precise calculations.

Record

Represents a single Salesforce record, such as an account or contact.

Object

Stores complex data structures or objects, often containing multiple fields or properties.

Currency

Used to represent monetary values, ensuring proper formatting and calculations.

Date

Stores a calendar date (year, month, day) without time information.

DateTime

Stores both date and time information together.

Picklist

A dropdown menu that allows users to select a single value from a predefined list.

Tags

Stores a list of keywords or labels used for categorization or filtering.

Email

Specifically formatted to store email addresses.

Phone

Holds phone numbers, often with specific formatting.

URL

Stores web addresses (Uniform Resource Locators) for linking to external resources.

Radio

Represents a group of mutually exclusive options where only one can be selected.

Time

Stores time information without an associated date.

Percentage

Stores numerical values represented as percentages, often used in calculations or metrics.

Text Area

Allows for the input of larger amounts of text, often used for comments or detailed descriptions.

Duration

Stores a length of time, typically used for measuring intervals or time spans.

Multi Picklist

Allows users to select multiple values from a predefined list.

For Example,

Calculating and Displaying Order Totals

For instance, you might define variables like ItemPrice, Quantity, and Discount. As users input the quantity of items they want to purchase and apply a discount code, the variables update instantly. The total cost, stored in a variable named TotalAmount, is then displayed on the page, reflecting the latest calculations.

This use case demonstrates how Variables can be employed to perform real-time calculations and display updated results, enhancing the user's interaction with the application.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.