Purpose Use JavaScript to evaluate complex arithmetic expressions encompassing GuiXT variables. GuiXT scripts only support operations with two operands, which may result in a series of script lines for complex calculations. |
Solution Examples GuiXT
The "compute" function returns a comma as
decimal separator. You may change this statically in the JavaScript
library or use the function
"compute_set_decimal_separator" to change the decimal
separator dynamically in your
script, depending on the SAP user settings,
for example. GuiXT
All complex arithmetic expressions are supported (parentheses, operator precedence). As operators you may use +, -, *, / and % (modulo). GuiXT
The "compute" function also allows us to use the alternative notation
JavaScript |
Components |