Add Attachment

 

Function Name: getAddAttachmentXml

 

Class: com.newgen.dmsapi.DMSInputXml

 

Description: This function is used to attach a document to some document.

 

Input Parameters

Sample InputXML

Output Parameters

Sample OutputXML

View xml API:: NGOAddAttachment

 

 

Prototype:

public String getAddAttachmentXml

(

 

 

 

String cabinetName, String userDbId,

 

 

String docIndex, String objected,

 

 

String objecttype, String pageNo,

 

 

String imageIndex, String VolumeIndex,

 

 

String attachmentName, String owner,

 

 

String noOfObjects, String loginUserRights

 

)

 

 

 

Input Parameters:

Name

Description

Valid Values

Default Behaviour

CabinetName

Name of the Database Cabinet to which the User wants to connect.

The name of the Cabinet.

N/A

UserDbId

UserDatabase ID, which is returned after the execution of getConnectCabinetXml call.

 

N/A

docIndex

Unique Index of the document for which the User wants to attach some Attachments.

 

N/A

ObjectId

Index of Object on which Locking / Unlocking operation is being performed.

Integer >=0

N/A

ObjectType

Type of Object on which Locking / Unlocking operation is being performed.

‘D’ – Document

‘F’ – Folder

‘U’ – User. If any other value is given then exception will be thrown.

N/A

pageNo

Page Number for which the User wants to attach the Attachments.

Integer

N/A

imageIndex

Image Index of the Attachment.

 

N/A

volumeIndex

Volume Index of the Attachment.

 

N/A

attachmentName

Name of the Attachment.

 

N/A

owner

Owner of the Attachment.

 

N/A

noOfObjects

No Of Objects.

 

N/A

loginUserRights

Rights of the logged in User.

 

N/A

 

Output Parameters:

An inputXml string of the NGOAddAttachment call.