llprogrammer
Programmer
Hi All,
I can not found out how to explore programmatically child nodes of folder to which i have alias.
I use the following LAPI fucnctions to recursively walk through hierarchy of directories and aliases of Livelink Enterprise Workspace:
1.
LL_ListObjects(session, VolumID, ID, "DTree", 0, LL_PERM_CREATENODE, Childs);
2.
for (int i=0; i<NumberOfChilds; i++){
// get child #i
// if(child type is alias) {
LLLONG OriginalID=0;
status = LL_RecordGetInteger( child, "OriginalID", &OriginalID);
LLLONG OriginalVolID=0;
status = LL_RecordGetInteger( child, "OriginalVolID", &OriginalVolID);
// I want to obtain VolID and ID of referenced object in the code above.
//}
}
But LL_RecordGetInteger returns error: -2147418096
and OriginalVolID and OriginalID remains equal to 0.
Can anybody give me explain me what I do wrong?
Thanks in advance!
I can not found out how to explore programmatically child nodes of folder to which i have alias.
I use the following LAPI fucnctions to recursively walk through hierarchy of directories and aliases of Livelink Enterprise Workspace:
1.
LL_ListObjects(session, VolumID, ID, "DTree", 0, LL_PERM_CREATENODE, Childs);
2.
for (int i=0; i<NumberOfChilds; i++){
// get child #i
// if(child type is alias) {
LLLONG OriginalID=0;
status = LL_RecordGetInteger( child, "OriginalID", &OriginalID);
LLLONG OriginalVolID=0;
status = LL_RecordGetInteger( child, "OriginalVolID", &OriginalVolID);
// I want to obtain VolID and ID of referenced object in the code above.
//}
}
But LL_RecordGetInteger returns error: -2147418096
and OriginalVolID and OriginalID remains equal to 0.
Can anybody give me explain me what I do wrong?
Thanks in advance!