This UI make it easy for users to build expressions, specially business users or non-technical users of FlowWright.
The expression builder (JQuery based expression, computed on client side code) will also display Variables/Globals based on context. The functions/variables/globals should be able to add with double click.
Select "Page -> Functions" menu option from the Form Designer page.
Click on (Fx) image to invoke Forms Expression Builder.
The Forms Expression Builder is displayed as a modal window. Use the expression builder UI to build an expression and validate it. Copy the expression to clipboard and paste it where an input is required for form controls (like above)
Parts of the user interface
1) Expression – Placeholder to build the expression. This can be done via manual entry type or by picking an operators (7), function (8).
2) Verify – Select this function to verify the logic of the expression. It will give you the option to enter a value to the defined input fields and simulate the expression. Example Expession: = CONCAT(“Dear, “ + variable.username + “, we’re today : “ +DAYTEXT(TODAY())
3) Use & Close: The expression is use in the process or form control, depending on the starting point. Window gets closed.
4) Save As – Saves the expression as a new function to re-use. Will be displayed in the functions overview (8) – Section Custom Expression
5) Send to Clipboard : copies the expression into the clipboard, so it can be paste for later purpose.
6) Clear Expressions: erases any definition in the expression builder
7) Available Operators
8) Available Functions (See below)
9) Description and example of the function
Functions Aggregate Table
AVERAGE |
Description: Returns the average of the given numbers
|
COUNT |
Description: Counts the number of numerical items.
|
MAX |
Description: Returns the largest value from a set of data
|
MIN |
Description: Returns the smallest value from a set of data
|
SUM |
Description: Sums up all the given numbers
|
Functions Numeric Table
ABS |
Description: Returns the absolute value of a given number
|
FLOOR |
Description: Round a number down to the nearest specified multiple Example: FLOOR(36,7) // returns 35
|
ISEVEN |
Description: check if a numeric value is an even number. Example: ISEVEN(7) // returns False |
LOG |
Description: Gets the logarithm of a number
|
MOD |
Description: Returns the remainder of the division of the given number in the divisor |
QUOTIENT |
Description: Returns the result of integer division without the remainder
|
POWER |
Description: A number raised to a power
|
ROUND |
Description: Rounds a number to a specific number of digits
|
ROUNDUP |
Description: Always rounds a number up
|
ROUNDDWN |
Description: Always rounds a number down
|
SQRT |
Description: Positive square root of a positive number
|
TRUNC |
Description: Truncate a number to a given precision Example: TRUNC(4.9) // returns 4 TRUNC(-3.5) // returns -3 TRUNC(PI(), 3) // returns 3.141
|
Function Date Time Table
ADD_DAYS |
Description: Adds days to the given date. Returns the new date.
|
DATE |
Description: Returns the value for the given parameters
|
DAYNUMBER |
Description: Returns the day of the month of a given date.
|
DAYTEXT |
Description: Returns the day of the month of a given date in long format.
|
DAYS |
Description: Returns the number of days between the two dates
|
FORMAT_DATE |
Description: Returns a formatted date
|
HOUR |
Description: Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
|
HOURS_DIFF |
Description: Returns the difference between two hours columns
|
WORKDAYS |
Description: Returns the number of working days between the two dates
|
MINUTE |
Description: Returns the minute as a number from 0 to 59.
|
MONTH |
Description: Returns the month of a given date.
|
MONTHTEXT |
Description: Returns the month of a given date in long format.
|
NOW |
Description: Gets the current time in 24hour format
|
NOWUTC |
Description: Gets the current time in 24hour format (UTC) |
QUARTER |
Description: Returns the quarter of a given date. Example: MONTH(variable.startdate) // returns 2
|
SECOND |
Description: Returns the second as a number from 0 to 59.
|
SUBTRACT_DAYS |
Description: Subtract days from the given date. Returns the new date.
|
TODAY |
Description: Gets the current date in current timezone format
|
TODAYUTC |
Description: Gets the current date in UTC Format (UTC) |
WEEKNUM |
Description: Returns the yearly week number of a given date.
|
YEAR |
Description: Returns the year of a given date.
|
Functions String / Text
CONCAT |
Description: This operator concatenate text values into a single text value
|
EXACT |
Description: compares two strings and returns TRUE if both values are the same Example: EXACT(variable.username, global.username) // returns TRUE – if the value of both variable and global are the same
|
LEFT |
Description: Extracts a given number of characters from the left side.
|
LEN |
Description: Returns the amount of characters of a given text string.
|
LOWER |
Description: Converts a specified string to lowercase
|
MID |
Description: Extracts a given number of characters from the middle of a supplied text string. Example: MID(“I Like FlowWright”, 3,4) // returns “Like” |
REPLACE |
Description: Replaces a part of a string with the new string.
|
REPT |
Description: Repeats a string a given number of times.
|
RIGHT |
Description: Extracts a number of characters from the right side of a given text string.
|
SEARCH |
Description: Searches a string within another string
|
SUBSTITUTE |
Description: Replace text in a given text string by matching.
|
TEXT |
Description: Formats the given value based on the given text format
|
TRIM |
Description: Removes all spaces from a string except for single spaces between words.
|
UPPER |
Description: Convert a specified string to uppercase
|