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!

Accessing Livelink via script language

Status
Not open for further replies.

llprogrammer

Programmer
Mar 26, 2009
13
RU
Hi,
does anybody know how to access Livelink via script language (VBScript, for example)? Is it possible?

Can we access the user personal workspace and find a certain folder via script?

Any ideas are hugely appreciated!
 
LAPI only supports a limited subset of languages - .Net, Java and VB - you may be better to use AJAX to call each page over HTTP and then process the results.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
if you have access to the KB this may give you some ideas

Really the lapi client files in my idea can be added as references to vbscript and I have used them in excel VBA.I am not too sure if VBA is a script language though


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,
what do you mean by saying "lapi client files in my idea can be added as references to vbscript and I have used them in excel VBA"? Does it mean that there's a COM interface for accessing Livelink? Does Livelink support COM API? I have looked in OleView and LAPI dlls but didn't find any type library or DllRegirterServer() function.
 
What I meant was you could declare all the lapi functions in a macro or module.I do not program or understand a lot of MS terminology just to get by.I put this macro just now it does not run completely but at least I know it is hitting the livelink server and executing LL code as I can see thru builder that the server is doing just fine.I do not really know why windows is complaining of access violation.It used to run fine in the older windows days as far as I can recall.Create
yourself a login and see if you can follow the macro.As far as COM support is concerned used to make a product called LLCOM.

Code:
[URL unfurl="true"]http://communities.opentext.com/communities/llisapi.dll/8546020/lapiMacro.xls?func=doc.Fetch&nodeid=8546020[/URL]

BTW if you get this past the windows errors teach me what it took to fix it.

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
 
Thank you for your explanation, appnair!
This approach doesn't suit me. Well... I have to write my own COM interface to Livelink:)
 
One idea could be to use the .NET LAPI via CCW in VBScript. However, I doubt that the tlbimp would generate scripting-friendly interfaces.

A ready-to-go product LLCOM seems to be a good alternative, you will save time.

Alternatively, you need not integrate the entire LAPI. You can also define the functionality you need in an interface with a few methods and implement it as (COM) component callable from VBScript. For such facade you could use C++ or .NET LAPI.

--- Ferda

--- Ferdinand Prantl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top