
495
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
Void
Syntax
UnWrapElement()
UpdateXRefs
Description
Updates the cross-references in a document. The method performs the same operation as clicking Update in the Cross-
Reference window.
You can OR the following values into the
updateXRefFlags
parameter:
The method returns
FE_Success
on success. On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
UpdateXRefs(updateXRefFlags)
Parameters
SimpleImportElementDefs
Description
Imports element definitions and the format change list catalog from an EDD or FrameMaker document or book to a
FrameMaker document or book.
Flags
Meaning
Constants.FF_XRUI_FORCE_UPDATE (0x08)
Updates all cross-references, regardless of whether the source document has
changed
Constants.FF_XRUI_INTERNAL (0x01)
Only update internal cross-references
Constants.FF_XRUI_OPEN_DOCS (0x02)
Only update cross-references whose sources are in open documents
Constants.FF_XRUI_CLOSED_DOCS (0x04)
Only update cross-references whose sources are in closed documents
Constants.FF_XRUI_EVERYTHING (0x01|0x02|0x03)
Update all cross references.
Error
Reason
Constants.FE_WrongProduct (-60)
Current FrameMaker version does not support the requested operation
Constants.FE_BadDocId (-2)
Invalid document
Constants.FE_SomeUnresolved (-22)
There are some unresolved references after the update
Parameter name
Data Type
Optional
Description
updateXRefFlags
int
No
Flags that indicate which cross-references to update.