Home > @i2analyze/notebook-sdk > app > IValueFactory
app.IValueFactory interface
A set of utility functions for creating property and other values that can be reused across records.
Signature:
interface IValueFactory
Introduced: version 1.1
Methods
Method | Description |
---|---|
createDecimal(value) | Creates a decimal value from a number or a string. |
createGeoPoint(latitude, longitude) | Creates a data.IGeoPoint object from a pair of latitude and longitude values. |
createGeoPoint(data) | Creates a data.IGeoPoint object from a data.IGeoPointData object. |
createLocalDate(year, month, day) | Creates a local date object (that does not have a time or a time zone) from year/month/day information. |
createLocalDate(jsDate) | Creates a local date object (that does not have a time or a time zone) from a JavaScript Date object. |
createLocalDate(iso8601) | Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd'). |
createLocalDateTime(year, month, day, hour, minute, second, milli) | Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information. |
createLocalDateTime(jsDate) | Creates a local date-time object (that does not have a time zone) from a JavaScript Date object. |
createLocalDateTime(date, time) | Creates a local date-time object (that does not have a time zone) from a local date and a local time object. |
createLocalDateTime(iso8601) | Creates a local date-time object (that does not have a time zone) from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss'). |
createLocalTime(hour, minute, second, milli) | Creates a local time object (that does not have a date or a time zone) from hour/minute/second information. |
createLocalTime(jsDate) | Creates a local time object (that does not have a date or a time zone) from a JavaScript Date object. |
createLocalTime(iso8601) | Creates a local time object (that does not have a date or a time zone) from an ISO 8601 string ('hh:mm:ss' or 'hh:mm:ss.sss'). |
createSecuritySetting(data) | Creates a security setting that you can use to configure record security. |
createZonedDateTime(date, time, timeZone, isDst) | Creates a date-time object that has a time zone from a local date, a local time, and a time zone. |
createZonedDateTime(dateTime, timeZone, isDst) | Creates a date-time object that has a time zone from a local date-time (or a JavaScript Date object) and a time zone. |
createZonedDateTime(iso8601, timeZone, isDst) | Creates a date-time object that has a time zone from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss') and a time zone. |