GetDataOfDDForFoldDoc

This call is used to fetch data belonging to a dataclass that is associated with a document or folder

Public Function GetDataOfDDForFoldDoc(ByVal ObjectId As Long,ByVal ObjectType As String, DataDefId As Long,DataDefName As String, DataDefComment As String, DataDefFieldList() As Byte) As Long

 

Parameters

In/out

Name

Data type

Description

In

 

ObjectId

Long

Index of object for which information related to dataclass and its fields is required.

In

 

ObjectType

String

Type of object 'D' for document / 'F' for folders

Out

 

DataDefId

Long

Index of dataclass associated

Out

DataDefName

String

Name of dataclass

Out

 

DataDefComment

String

Comment,if any associated with dataclass

Out

DataDefFieldList

Byte

Byte array containing information related to the fields of the dataclass.

 

Description

This function is called form desktop for both local (though not used for local but support is there) and shared cabinet. It is used to fetch data of a dataclass associated with any document or folder  

 

Return value

Name

Description

 1

In case of success

-2

Invalid operation in read-only cabinet

-3

Cabinet not connected

-4

Invalid operation

-72

No data class associated with the document

 

Example

Dim ObjectId                    As Long

Dim ObjectType               As String

Dim DataDefId                 As Long

Dim DataDefName           As String

Dim DataDefComment      As String

Dim DataDefFieldList()     As Byte

Dim lRetVal                     As Long

Dim gPDb                       As PanDb.pdbCls


Set gPDb = New PanDb.pdbCls

ObjectId = 67

ObjectType = “D”

lRetVal=gPDb.GetDataOfDDForFoldDoc(ObjectId,ObjectType,DataDefId,DataDefName,DataDefComment,DatDefFieldList)

if lRetVal <> NG_SUCCESS Then

    MsgBox gPDb.ErrDescription, vbInformation

    Screen.MousePointer = vbNormal

Endif