Arbortext Command Language > Repository API > dobj_collapse_oid
  
dobj_collapse_oid
dobj_collapse_oid (oid, collapse, allinst)
This function either collapses (collapse=TRUE) or expands (collapse=FALSE) the parent document object that contains the object oid. If allinst is set to TRUE, the function operates on all instances of the parent document object.
If oid is invalid, or the operation fails, the function places error data in $main::ioerr and returns a zero (0). If successful, the function returns a one (1).
* 
Expanding explicitly forces a collapsed document object to be reloaded.