Functions Data Type
This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0
The vDesigner module provides several in-built data types to impart computational capabilities to the application designed in it. You can use these data types when you use vDesigner functions to implement application-related functionalities. You use vDesigner functions to create a business rule, configure a task, and in other activities.
The vDesigner module provides the following data types to use data in vDesigner functions. These data types are described as follows:
Data Type | Description | Sample Values |
Number | In the vDesigner functions, the Number data type specifies a numeric value, including integers (whole numbers) and floating-point numbers (decimal). You can use the Number data type to handle any numeric value, such as decimal values, positive and negative integers, and others. You can use the numeric values with the Number data type for arithmetic calculations in algorithms and functions. | 5, 100, -18, 0.47, -0.65 |
String | You can use the String data type to handle a sequence of characters. When you use the value with the String data type in the vDesigner function, you enter the string in the place of the Value parameter. | My bank account is, Peter |
Interger | In vDesigner functions, the Integer data type includes the whole positive and negative numbers, such as 4, 75, -15, -34, and others. Like in the Number data type, you can use integers in arithmetic calculations. | 4, 75, -15, -34, |
Float | The values with the Float data type contain decimal numbers. A decimal number contains the whole number (for example, 3) and the decimal part or fraction (for example, .57). Like the values in the Integer and Number data types, you can use the decimal values in several arithmetic operations, including complex data reports that display decimal numbers. The Float data type includes positive and negative decimal numbers. | 3.57, -0.56, 3.22 |
Boolean | The Boolean data type contains two values: true and false. It is treated as a logical data type. When you use it in a vDesigner function or any other decision-making algorithm, it returns either true or false. Based on the returned value, the application performs its next function. You can use the Boolean data type to validate the user’s action on the application. | true, false |
Datetime | In vDesigner functions, you can use the Datetime data type to define the value in date and time formats, such as dd/mm/yyyy, dd/mm/yy, and hh:mm:ss. For instance, by using the dd/mm/yyyy format, if you define the 24/08/2021 date, it means that the 24th is the date, the 08th (August) is the month, and 2021 is the year. You can use values in date and time formats to implement date and time-related functions and conditions. | 24/08/2021, 13:34:45 |
List | In the application development through the vDesigner module, you can use the List data type when you want to work on a collection of items. For instance, you can use the List data type when you want to display a set of data in a dropdown element or multiselect dropdown element, with a group of check boxes, a group of radio buttons, and others. To build a list of items, you can do the following: a. Use the static function with the list that contains the JSON structure of objects. The sample syntax of the STATIC function is as follows: STATIC([{<<json structure>>}], List]) b. Define the array of objects in Data Modeler. The sample list of objects is as follows: [{…}, {…}, {…}] To see the list of objects, click here. Note:- When you define an array of objects in the entity in Data Modeler, you enclose the array of objects with curly braces. It means that you cannot define an array as the top-level data type in the entity. Likewise, if you want to store multiple selected options that the end-user selected in a group of check boxes, you can store them in a list of strings. In the list of strings, a string specifies the option that the end user selected in the group of check boxes. | STATIC([{<<json structure>>}], List]), List of objects |
Map | You can use the Map data type when you want to manipulate the data at the application level. By using the Map data type, you map the attribute to display its value in an element or store the element’s value in the attribute. |
#Sample List of Objects:

Was this article helpful?
YesNo