App Variables
App Variables in Tadabase are an essential feature that empowers you to efficiently store and utilize data across your entire application. Whether you need to store logos, content, or any other information that you want to use consistently throughout your app, App Variables have got you covered. In this guide, we'll walk you through the purpose and functionality of the App Variables tab within the Tadabase Application Builder.
Accessing the App Variables Tab
To get started with App Variables, follow these steps:
- In the Tadabase Builder, locate the Settings icon on the left-hand side.
- Click on the Settings icon to access the App Settings section.
Access the App Variables Tab:
- Within the App Settings, you will find the "App Variables" tab. Click on it to enter the App Variables management area.
Creating a New App Variable
Now that you're in the App Variables tab, you can start creating your App Variables. Here's how:
Add a New Variable:
- In the upper-right corner of the App Variables tab, you'll see the "Add New Variable" button. Click on it to begin the creation process.
Configure the Variable:
You'll be presented with several options to define your variable:
- Name: Give your variable a friendly name, making it easy to identify. For example, "Logged in User Name."
- Unique Code: Define a unique code for the variable. This code should be a reference to the variable's purpose, such as "loggedInUserFullName."
- Description: Describe the purpose of the variable, so it's clear to other developers or team members. For instance, "Name of the logged-in user."
-
Type: Choose between "Static" and "Formula."
- Static: Select this type if your variable contains fixed content like text, URLs, or any data that doesn't change based on calculations.
- Formula: Opt for this type when you need the variable to hold calculated values based on data tables, fields, and conditions.
Configuring Formula Type (if applicable):
If you choose the "Formula" type, you'll have additional options to set up your variable:
- Data Table: Select the relevant data table on which you want to perform calculations.
- Formula Function: Choose a function for the calculation from options like Count Records, Maximum Value, Minimum Value, Average Value, or Sum Value.
- Value Field: Pick a field from the selected data table to use with the chosen formula function.
- Data Condition: Define a condition if you need to filter out specific records from the calculation. This helps in refining your variable's output.
Setting a Value (for Static Type):
- If you selected the "Static" type, you can now define the content of the variable. This could be plain text, a URL, or any relevant data.
Conclusion
App Variables in Tadabase are a powerful tool for managing data consistently across your application. Whether you need to store static information or perform dynamic calculations based on your database, App Variables offer a versatile solution. By following the steps outlined in this guide, you can efficiently create and configure App Variables to enhance the functionality and user experience of your Tadabase application.
We'd love to hear your feedback.