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 access EnterpriseWS's parent level?

Status
Not open for further replies.

llprogrammer

Programmer
Mar 26, 2009
13
RU
Hi,
does anybody know how to access "Livelink workspace" (Livelink level containing Enterprise workspace, Personal workspace etc.) via Livelink API? Is it possible?

We have an LL_AccessEnterpriseWS() function for accessing Enterprise workspace, but how can we get one level higher?

I want to implement dialog for exploring Livelink starting from the above mentioned "Livelink workspace" node.

Thanks in advance!
 
when you call access enterprise workspace look for the key parentid in almost all implementation from my memory I recall it may say -1 indicating it is a workspace.

The call you have to use is the enterprsieworkspace call,that is how OT wants programmers to find the dataid of the ws usually 2000.
When the call is returned look for its output call and printout parentid.


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,Livelink ECM Champion 2008
 
BTW LAPI is being put into the back burner as OT wants you to use its new cousin web services.The sample project that ships with web services has a tree control the same thing you are trying to do.WS of OT is only available with its new version of livelink server 9.7.1

This is a snippet of me trying to find the parentid

Code:
if(doc.AccessEnterpriseWS(entInfo) != 0)
		{
			System.out.println("AccessEnterpriseWS Failed.");
						return;
		}
		  //Show that we got the volumeID and objectID for the EnterpriseWS

			volumeID = entInfo.toInteger("VolumeID");
			objectID = entInfo.toInteger("ID");
			parentID = entInfo.toInteger("PARENTID");
System.out.println("Volume"+volumeID+"ObjID"+objectID);

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,Livelink ECM Champion 2008
 
appnair, I didn't understand your answer...
I have called LL_AccessEnterpriseWS() and looked for parentID: parentID == -1 (though Livelink API documentation says nothing about parentID in the output of LL_AccessEnterpriseWS()...).

Now what is the next thing I have to do? How do I get VolumeID and objectID of "Livelink workspace (if workspace)" containg Personal WS and Enterprise WS?
 
you said that you want to start at the root.OT says for a livelink implementation EWS is the root and you want to know go one step higher so I said for any object its parent is its parentid.It just happens that for workspaces they always have it as -1.So what is your problem here and what don't you understand ?
The call accessenterpriseworkpsca gives you access to the enterprise,acesspersonal gives you access to your personal workspace.Most volumes have parentid of -1 and that is how you know it is a volume.

If you call listobjects when you are EWS then you will get the first level children just like one would see
when logging thru the webgui.you would somehow I guess get it into a tree control that is probably how I would code it.

So have a look at the webgui and see if you can follow what lapi is doing :)

Also it is very helpful to see what livelink does thru its gui before trying to program it :) Many of us do that

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,Livelink ECM Champion 2008
 
OK, James, thank you very much!
I've created my dialog!)

Could you please also look at my new thread-question "Accessing Livelink via script language"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top