Adds the key-value pair to the AltIds of this object. This will overwrite any existing value for the key on any object that has the same classId without warning you, so use this with caution.
An object of alternate ids for this object, with values as [[AltId]]
An array of alternate ids for this object.
Same as calling optAncestor(var).orElse(null)
If this object is a Collection it returns it as an array. The majority of objects in the system are Collections. For most objects, this is the same as calling [[children]].
Get the children of the object. This retrieval goes one level deep.
OptionalclassType: string | numberThe "created at" timestamp of this object.
The creator of this object.
The deleted children of this object. Only looks one level deep. E.g. a form's deleted children could include fields and form entries. A folder's deleted children could include folders, forms, and formulas, but not any of those forms' entries.
Gets an array of all the object's ancestors.
The [[Id]] of this object bounded to T.
Returns the Local Cache object for this Thread/Base Object.
Same as calling optLock().orElse(null)
The [[User]] that last modified this object.
A [[Java.Optional]] of the ancestor with the specific class.
A [[Java.Optional]] of the current object's parent object.
OptionalclassType: string | numberSame as calling optParent(var).orElse(null)
OptionalclassType: string | numberRemoves the AltId with the specified key from this object, if it has one. There is no error if the key does not exist.
Calling require off a form adds it as a member of the form. It can then be accessed using standard JavaScript dot or bracket notation as whatever name you give it.
When require is called in imports.js, it creates a branch of the dependency tree for that object. It's not required to call require inside of imports.js, but if you don't, that object won't show up in the inspector.
Optionalparams: string | RequireParamsIf a string, that is used as the formula reference. If empty, defaults to the object's FID (see [[AltId]]).
Use object destructing to get specific fields from a form
const formsByFID = B.queries.byFID['allIndividuals'].require().forms.byName;
formsByFID['name'].require();
const {firstName, lastName} = formsByName.name.fields.byFormulaId;
Reset the current object so that it is cleared from the cache and looked up from the database.
All Summary [[Field]] Objects regardless of if they contain a formula id.
The [[Id]] or [[AltId]] that the system deems most relevant.
Makes changes to the database for this object
The versions of this object.
The versions of this object.
Returns a view URL for this object, if it has one. This value is always a relative URL, meaning it does not contain the protocol prefix or domain name such as http://xyz.bluestep.net.
Sets the form to writable. If this is not called, you will only be able to perform R from CRUD. It's suggested to do this in imports.js before calling [[require]]. Returns itself.
TODO
Example