IBMCM_ReplacePage
Replaces a page in an existing IBM® Content Manager document with a new page in the runtime DCO hierarchy.
Syntax
bool IBMCM_ReplacePage(int existingPage, int newPage)
Parameters
Int existingPage: the existing page in the IBM Content Manager document.
Int newPage: the new page in the DCO hierarchy.
Parameters
When you call this action at the Document level, both existingPage and newPage parameters are required.When you call this action at the Page level, the newPage parameter is ignored.
Returns
True, if the existing page in the IBM Content Manager document is replaced with the new page in the runtime DCO. Otherwise, False.Level
Document and Page level.Details
You must retrieve the existing IBM Content Manager document from the IBM Content Manager repository before you call this action.The IBMCM_SearchItem action can be used to retrieve the existing IBM Content Manager document.
- Example
IBMCM_SearchItem("EmployeeID","14B04B12") IBMCM_ReplacePage(2,3)This example searches the IBM Content Manager repository for the existing IBM Content Manager document with the unique attribute EmployeeID=14B0B12.
If the existing IBM Content Manager document is found, it replaces the second page in the existing IBM Content Manager document with the third page (TM000003) in the runtime Document DCO.