Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
CSIDE and OScript
Obtaining URL Prefix from OScript
Greg_Mullins
Hello Folks, I am writing a custom module that needs to scrape the IE url from oscript. I tried looking, and did not see anything that does this. For example if the url is:http:\\mylivelinkservername\livelink_eng\llisapi.dll... I would be happy to get the full url, or just the prefix like the Http:\\mylivelinkservername Any suggestions would be greatly appreciated. Thanks for your help!
Find more posts tagged with
Comments
Appu_Nair
There are many places that this variable is given to you.If you are writing a RH or a webnode action you will in your object receive a record r.If you inspect r and see you will get a lot of infor.SERVER_NAMEr.SCRIPT_NAMEfor a webnode action this object is called request you can debug it in subclassexecute
Greg_Mullins
THanks for the suggestions, however,I am not writing a webnode action.I have a module with a Configure object, and an orphaned generalcallback script request handler, to expose scripts in a workflow.Is there a URL somewhere in the prgctx object? That would be ideal --- or, how, do I get this data from a webnode action within a generalcallback script?Thanks for your help!
sıɹɥɔ
Message from Chris Webster <
cwebster@opentext.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Hi Mary,
When a workflow is executing it is not necessarily because a user has just "sent on" a step from a web page: the workflow could be executing from an agent, or from a LAPI call, or from other contexts for which there is no web request. Therefore there is no URL available to a workflow callback script..
If you are building a link on a web page that is displayed from Livelink then you can simply use a relative URL e.g.
<A HREF="?func=llworkspace">Enterprise</A> will work without a host, virtual directory, etc.
If you are instead building a link on a page that references your Livelink system then you need to use a configured value for the Livelink URL, either one that you set for use by your module, or one that is used in other Livelink modules. (As an example, see the administration page for Notifications which has a configured URL field for exactly the same reasons above.)
Hope this helps,
-chris
From:
eLink Discussion: Livelink Builder Discussion [mailto:componentbuilder@elinkkc.opentext.com]
Sent:
Friday, August 08, 2008 12:19 PM
To:
eLink Recipient
Subject:
Hmmmm....
Hmmmm....
Posted by
chironuser8
(Giang, Mary) on 08/08/2008 01:17 PM
In reply to:
There are many places that this variable is given to you.If you are writing a...
Posted by
anair@alitek.com
(Nair, Appu) on 08/04/2008 05:53 PM
THanks for the suggestions, however,I am not writing a webnode action.
I have a module with a Configure object, and an orphaned generalcallback script request handler, to expose scripts in a workflow.
Is there a URL somewhere in the prgctx object? That would be ideal --- or, how, do I get this data from a webnode action within a generalcallback script?
Thanks for your help!
Appu_Nair
I actually used a relative URL in one of my projects.That info is not available to the script.You can read it from a pref or use a relative url.I attach my script that I used previously
Greg_Mullins
Thanks for the script! It almost does the trick.... Seems like the opentext.ini file is the only hope --I will try to read the opentext.ini file for the DisplayServerName (we currently state the systemtype -- QA, Prod or Dev in it). I will try parsing the systemtype out and translate it to its http component.QA == livelinkQADev == LivelinkDEVProd == LivelinkProdthus building my url like --- HTTP:\\livleinkqa\....\,llisapi.dll?func=...Of course, the only problem is I am hardcoding the http component in the module, and will have to update the module any time the http component changes...I was really hoping to somehow scrape whatever URL was sent to the browser, and build my custom URL that way...Does that make sense?Thanks again for all your suggestions!!(Note that we can't easily change the opentext.ini to be livelnkqa, ... etc.)
Donna Nalls
Hi Mary,You may want to create a custom section in your module .ini file - then save your url there...it's a lot easier to make changes at a later time, without having to make a code change. Your LL Admin can make changes very easily when the module gets moved to new server.i.e.[custom]QA_URL=
http://yourqaserver/qa/llisapi.dll?func=ll&objid=%1&objaction=openI
am attaching a little utility script that i use for retrieving values from a custom module ini.Best,Donna
Greg_Mullins
Thanks, Donna! That worked!!!! Cheers,Mary
Jeff Lang
You can make the call:prgCtx.DSession().GetWebServiceInfo()to return the URL to the Livelink instance.