- Builder
- Data Types in Codejig Builder
- Composite Data Types
- CJ Blocks
- Blocks
- Predefined Functions
Predefined Functions
AppUserAccount
Get current user: This is a function that returns the current user of your web app.
Configuration
sendMail (sendTo, replyTo, displayName, subject, bodyHtml, bodyPlain, attachments):
Sends an email with the following - Send to, Reply to, Display name, Subject, Body, and attachments.
Duration
Between (startInclusive, endExclusive): It returns the duration between two objects. A Duration object is measured in seconds or nanoseconds and does not use date-based constructs such as years, months, and days, though the class provides methods that
Local date
Now (zone): It is used to return the current local date from the system clock in the specified time-zone.
Of (year, month, dayOfMonth): Returns object of the local date data type with the specified year, month, and day.
Local date time
Now (zone): It is used to return the current local date and time from the system clock in the specified time-zone.
Of (date, time): Returns local date time object with specified time and date.
Of (year, month, dayOfMonth, hour, minute, second, nanoOfSecond): Returns the object of the local data time data type with the current year, month, day, hour, minute, second, and nanosecond.
OfInstant (instant, zone): This function returns the current instant in the specified time-zone.
ToLocalDate (localDateTime): Gets the local date from the local date-time data type.
ToLocalTime (localDateTime): Gets the local time from the local date-time data type.
Local time
Now (zone): It returns the local time from the system clock in the specified time-zone.
Of (hour, minute, second, nanoOfSecond): Returns the local time object with the specified hour, minute, second, and nanosecond.
Locale
getCurrentLanguage(): This function returns the locale from the current user session.
Month day
Now (zone): It returns the current month and day from the system clock in the specified time-zone.
Of (month, dayOfMonth): Returns object of the month and day data type with current month and day.
Period
Between (startDateIncluse, endDateExclusive): This function returns the period between two dates. The total period of time is represented by months, days, and years.
Of (years, months, days): Returns the object of the period data type with years months, and days.
String
isNullOrBlank (string): Returns true if the given string is null or is blank. A blank string does not contain any visible characters.
isNullOrEmpty (string): Returns true if the given string is null or is empty. An empty string is completely empty.
Timestamp
atZone (instant, zone): This function is used to combine an instant with a time-zone.
Now(): It returns the current timestamp from the system clock.
Year
Now (zone): This function returns the current year from the system clock in the specified time-zone.
Of (isoYear): It accepts a single integral value isoYear as the only parameter according to the proleptic ISO calendar system. And returns an instance of year.
Year month
Now (zone): Returns the current year and month from the system clock in the specified time-zone.
Of (year, month): Returns the object of the year month data type with the current year and month.
Zone offset
ofHoursMinutes (hours, minutes): Returns an instance of ZoneOffset using an offset in hours and minutes.
Zoned-date time
Now (zone): Returns the current date-time from the system clock in the default time-zone.
Of (localDateTime, zone): Returns an instance of ZonedDateTime from a local date and time.
Of (year, month, dayOfMonth, hour, minute, second, nanoOfSecond, zone): Returns a copy of this ZonedDateTime with the specified Year, month, day, hour, seconds, and nanoseconds.
ofInsant (localDateTime, offset, zone): Returns an instance of ZonedDateTime from the instant formed by combining the local date-time and offset.
ofLocal (localDateTime, zone, preferredOffset): Returns an instance of ZonedDateTime from a local date-time using the preferred offset if possible.
ofStrict (localDateTime, offset, zone): Returns an instance of ZonedDateTime strictly validating the combination of local date-time, offset and zone ID.
toInstant (zonedDateTime): Gets the date and time part of this instant. It Converts this date-time to an Instant. This returns an Instant representing the same point on the time-line as this date-time. The calculation combines the local date-time and offset.
toLocalDate (zonedDateTime): Gets the LocalDate part of this zoned-date-time.
toLocalDateTime (zonedDateTime): Gets the LocalDateTime part of this zoned-date-time.
toLocalTime (zonedDateTime): Gets the LocalTime part of this zoned-date-time.
withZoneSameInstant (zonedDateTime, zone): Returns a copy of this date-time with a different time-zone, retaining the instant.