Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

 

Mez (System) BIFs

These BIFs are accessed via the pseudo unit “Mez”

now

Returns the current time

 

Info
  1. datetime t = Mez:now();

 

today

Returns the today's date

 

Info
  1. date d = Mez:today();

 

alert

Displays an alert dialog in the UI with the given message

 

Info
  1. Mez:alert(“translation.key”);

 

log

Writes a log message with level INFO. The logging entry is saved in the __logging_log__ table of your application instance's schema. It will also be available via the Logging Service.

 

Info
  1. Mez:log(“Hello, World”);

 

warn

Writes a log message with level WARNING

 

Info
  1. Mez:warn(“translation.key”);

 

error

Writes a log message with level SEVERE

 

Info
  1. Mez:error(“translation.key”);

userRole

Returns a string representation of the current logged in user role

 

Info
  1. Mez:userRole();

 

 

Math BIFs

These BIFs are accessed via the pseudo unit “Math”

Table of Contents

 

 

Built-in Functions on the Math Namespace

 

pow

Raises the first argument to the power of the second argument.

 

info
Code Block
language
java
int
 i 
 i =
 
 Math:pow(2,
 
 8);

 

sqrt

Calculates the square root of the argument.

 
Code Block
language
info
java
decimal
 d 
 d =
 
 Math:sqrt(3);

 

random

Generates a random decimal

 

Infodecimal r = 

between 0 and 1.

Code Block
languagejava
decimal r = Math:random(); 

 

 

 

Additional Mentions and References

 

Excerpt
hiddentrue

pow | sqrt | random