Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

 

 

 

Mez (System) BIFs

These BIFs are accessed via the pseudo unit “Mez”

now

Returns the current time

 

  1. datetime t = Mez:now();

 

today

Returns the today's date

 

  1. date d = Mez:today();

 

alert

Displays an alert dialog in the UI with the given message

 

  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.

 

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

 

warn

Writes a log message with level WARNING

 

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

 

error

Writes a log message with level SEVERE

 

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

userRole

Returns a string representation of the current logged in user role

 

  1. Mez:userRole();

 

 

Math BIFs

These BIFs are accessed via the pseudo unit “Math”

pow

Raises the first argument to the power of the second argument

 

int i = Math:pow(2, 8);

 

sqrt

Calculates the square root of the argument

 

decimal d = Math:sqrt(3);

 

random

Generates a random decimal

 

decimal r = Math:random();

 

 

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.