home |   products |   partners |   news |   forum |   contacts |
HummingbirdTools.com

Useful third-party tools for Hummingbird DM / RM / Workflow / Portal

 Home  > Products > XML-based import for Hummingbird DM > Online Help
Home    XML-based import for Hummingbird DM - Online Help

Download demo-version NOW!
Prev Next
Welcome
Main features
SQL queries
Global and local variables
Working with documents (create/update/search/remove)
Working with folders (creating/removing/updating searching for folders/adding and removing documents)
Updating numerous documents with one operation
Using references to items
Processing errors
User interface
User interface overview
Defining global variables
Specifying logon parameters for Hummingbird DM
Program settings
XML scheme
XML scheme description
Pseudo scheme
Elements
ACCESSRIGHTS
ACTIONS
ADD_ITEM
CONTENT
CREATE_ATTACHMENT
CREATE_VERSION
DOCUMENT
FIELD
FOLDER
GROUP
HBXMLIMPORT
PROFILE
PUBLISH_VERSION
QUERY
REMOVE_ITEM
SEARCH
SECURITY
USER
VARIABLE
F.A.Q.
Examples
Requirements
Demo version limitations
Licensing, prices, technical support

Updating numerous documents with one operation

 

With this software, you can easily perform the same actions on several documents (folders) in one operation.

If several documents (folders) have been found during search (see such elements as DOCUMENT / SEARCH / QUERY ), actions that were defined in the action attribute of the DOCUMENT element will be applied to all found documents (folders).

For example, if action="delete", all found documents will be removed.

Example:

<DOCUMENT action="delete" onerror="break">

<SEARCH>

<QUERY>

SELECT DOCNUMBER FROM DOCSADM.PROFILE WHERE DOCNAME LIKE '%test%'

</QUERY>

</SEARCH>

</DOCUMENT>

This example shows how all documents whose title contains the word "test" are removed with the help of one DOCUMENT element.

 

 

If action="update", form fields are updated and/or actions specified in the ACTIONS element of the DOCUMENT element are performed for all found documents.

Example:

<DOCUMENT id="doc" action="use" onerror="break">

<SEARCH>

<QUERY>

SELECT DOCNUMBER FROM DOCSADM.PROFILE WHERE DOCNAME = 'test'

</QUERY>

</SEARCH>

</DOCUMENT>

<FOLDER action="update" onerror="break">

<SEARCH>

<QUERY>

SELECT PR.DOCNUMBER

FROM DOCSADM.APPS A, DOCSADM.PEOPLE P, DOCSADM.PROFILE PR

WHERE P.USER_ID = 'TEST' AND PR.AUTHOR = P.SYSTEM_ID AND A.APPLICATION = 'FOLDER' AND PR.APPLICATION = A.SYSTEM_ID

</QUERY>

</SEARCH>

<PROFILE form="DEF_PROF">

<FIELD name="COMMENT">Document "test" has been added</FIELD>

</PROFILE>

<ACTIONS>

<ADD_ITEM docnumber="%doc.DOCNUMBER%"/>

</ACTIONS>

</FOLDER>

In this example, a document with the title "test" is added to all folders created by the user with the TEST ID. At the same time, the text «document "test" has been added» is written to the COMMENT field of each folder.

Note: a reference to a previously found item is used in this example. See Using references to items for more information.

 

You can use such bulk operations not only to perform various operations while importing documents, but also use XML to perform administration operations on the server. For example, it is much easier to perform operations that you cannot perform using an SQL query directly in the database.

Contact Us · Legal · Privacy · Site Map © HummingbirdTools.com All Rights Reserved.