@IsDocBeingLoaded (Formula Language)
Checks the current status of the document and returns 1 (True) if the document is being loaded into memory for display; otherwise returns 0 (False).
Syntax
@IsDocBeingLoaded
Return value
flag
Boolean
- 1 (True) indicates that the document is actually being loaded into memory
- 0 (False) indicates that the document is not being loaded into memory
Usage
Use function in field and form formulas. It does not work in toolbar button, selection, column, agent, section editor, hotspot, form action, or view action formulas.
Examples
- This example returns 1 when the document is being loaded into
memory.
@IsDocBeingLoaded
- This example returns 0 when the document is saved.
@IsDocBeingLoaded
- This example, when used in a computed field named "Editors," displays
the contents of $UpdatedBy when the document is being loaded. When
the user recalculates the field (by pressing F9), the field displays
the user's name as the current editor, followed by previous editors'
names. When the document is saved, the value of "Editors" remains
unchanged.
@If(@IsDocBeingLoaded;$UpdatedBy; @IsDocBeingRecalculated;("Current Editor - " + @UserName):$UpdatedBy;Editors)