Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to explore alias to folder?

Status
Not open for further replies.

llprogrammer

Programmer
Mar 26, 2009
13
RU
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!
 
try this according to documentation.
Code:
ListReferences

This function returns a RecArray value object containing one Record of information for each shortcut (alias) or generation that references the specified object.

If that does not work try doing a query on the subtype
of reference mainly select * from dtree where subtype=1
subtype=1 are all the alias or shortcut objects

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer and probably certfiable,Livelink ECM Champion 2008

 
Hmm... how can I use ListReferences if I don't know VolumeID and ID of original (referenced) object? The problem is I want to get child nodes of original (referenced) object but I can not obtain its VolumeID and ID. I only have VolumeID and ID of alias object.
 
if you use GetObjectInfo on the ShortCut it returns a structure including :

OriginalID Integer
For a Shortcut (Alias) or Generation object, the object ID of the object it references; for all other objects, Undefined

OriginalVolID Integer
For a Shortcut (Alias) or Generation object, the volume ID of the object it references; for all other objects, Undefined

This should provide what you need.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top