IBMCM_AddPages

Adds new pages to an existing document in the IBM® Content Manager repository. The new pages are appended to the existing pages in the IBM Content Manager document.

Syntax

bool IBMCM_AddPages(int newPage)

Parameters

Int newPage: the new page to add to the IBM Content Manager document.

Parameters

newpage is required when you call the action at the document level.

If newpage=0, all of the new pages in the runtime DCO are added to the existing IBM Content Manager document.

If newpage>0, only the new page that is specified by newpage is added.

Returns

True, if the new page or pages are successfully added. Otherwise, False.

Level

Doc and Page levels.

Details

You must retrieve the existing IBM Content Manager document from the IBM Content Manager repository before you call this action to add new pages to it.

You can use the IBMCM_SearchItem action to retrieve the existing IBM Content Manager document.

Example
IBMCM_SearchItem("","A1001001A14B04B12546D00215")
IBMCM_AddPages(2)

This example searches the IBM Content Manager repository for the existing document with the unique ID of A1001001A14B04B12546D00215.

If the document is found, this action adds a second page (TM000002) in the runtime Document DCO to this document.

IBMCM_SearchItem("EmployeeID","14B04B12")
IBMCM_AddPages(0)

This example searches the IBM Content Manager repository for the existing document with the unique ID of EmployeeID=14B04B12.

If the document is found, this action adds all of the pages in the runtime Document DCO object to this document.