Internal $D Methods
Basic functions
$D.eval() or $D.getValueFromTemplate() Getting the field value of the current object
$D.eval() or $D.getValueFromTemplate() Getting the field value of the current object$D.getValueFromTemplate = function(fieldName[string])
// the same but shorter:
$D.eval = function(fieldName[string])
// examples
var name = $D.getValueFromTemplate("{{name}}") // name == Ivan
// you also can get values from linked objects
var phone = $D.getValueFromTemplate("{{author_id.phone}}") // phone == 79141230000
// tip: for getting data from arrayLinks use $D.store.get()$D.store.get() Getting an object from a different structure
$D.store.get() Getting an object from a different structure$D.store.get = function(structName[string], objectID[string], fields[object])
// example
var object = $D.store.get("WebUser", "7967", {fields: ["phone", "role"]});
// object == { role: "candidate,admin", phone: "79670190000", id: "7967" }$D.store.save() Saving an object
$D.store.save() Saving an object$D.store.find Searching for objects
$D.store.find Searching for objects$D.store.export() For exporting data to Excel
$D.store.export() For exporting data to Excel$D.console.log() Console logging
$D.console.log() Console loggingDealing with context variables
Additional functions
$D.fs.download() Saving files to the internal file storage
$D.fs.download() Saving files to the internal file storage $D.fs.saveText() Saving text to file
$D.fs.saveText() Saving text to file$D.image.resize() Resizing images
$D.image.resize() Resizing images $D.concat() Adding an element into array while avoiding duplication
$D.concat() Adding an element into array while avoiding duplication$D.splice() Removing elements from an array
$D.splice() Removing elements from an array $D.hash.md5(), $D.hash.bcrypt(), $D.hash.sha256()
$D.hash.md5(), $D.hash.bcrypt(), $D.hash.sha256()$D.arrayContainsAny() Checking if an array contains at least one element
$D.arrayContainsAny() Checking if an array contains at least one element $D.arrayContainsAll() Checking if an array contains all elements
$D.arrayContainsAll() Checking if an array contains all elements$D.json.fromXML() Converting XML to JSON
$D.json.fromXML() Converting XML to JSONJWT Methods
Last updated
Was this helpful?