IBMCM_SearchItem

IBM® Content Manager 存储库中搜索现有项。

语法

bool IBMCM_SearchItem (string attribute, string attributeValue)

参数

字符串 attribute: 属性名称。

字符串 attributeValue: 唯一属性值或文件夹标识。

参数

attributeattributeValue 都是必需参数。 如果在第二个参数中使用文件夹标识,请将第一个参数保留为空 ("")。

支持智能参数。

返回结果

True(如果找到该项)。 否则,返回 False

级别

所有级别。

详细信息

IBM Content Manager 存储库中搜索与指定属性和值匹配的现有项。 如果找到某个项,那么当前项将设置为该项。 否则,当前项设置为 NULL。

IBMCM_SearchItem 用于检索现有的 IBM Content Manager 项,然后再调用其他操作(如 IBMCM_AddPages, IBMCM_DeletePages, IBMCM_ReplacePage, 和 IBMCM_SetAttributeValue )来更新项的属性或内容。

示例
IBMCM_ SearchItem("Department", "Human Resource")
IBMCM_SetAttributeValue("Department","Operations")

此示例搜索具有属性名称 Department 和属性值 Human Resources的项。 然后,它会将属性值更改为 Operations

IBMCM_ SearchItem ("", "A1001001A14B04B12546D00215")

此示例搜索标识为 A1001001A14B04B12546D00215的项。