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)
API, SDK, REST and Web Services
How to remove Kini & AgentSchedule records on uninstall?
Tom_Fontanella_(genzymeuser1_-_(deleted))
Hello Group,I need to remove some Kini & AgentSchedule records that my custom module has used, when the user uninstalls the module. The documentation I have seen so far says to modify a subclassed 'DoSubClassUninstall' from WebModule. However, that script and the ones calling it do not appear to have a program context (PrgCtx) that I can access to subsequently get the DSessions, CAPIConn sessions, etc. necessary to perform the clean up SQL statment calls.Any suggestions?Thanks much,Eliot Gorman
Find more posts tagged with
Comments
Paul_Jensen
Message from Paul Jensen via eLink
Paul_Jensen
[This was originally attached to my previous posting. -- psj]> I need to remove some Kini & AgentSchedule records> that my custom module has used, when the user> uninstalls the module. The documentation I have> seen so far says to modify a subclassed> 'DoSubClassUninstall' from WebModule. However, that> script and the ones calling it do not appear to> have a program context (PrgCtx) that I can access> to subsequently get the DSessions, CAPIConn> sessions, etc. necessary to perform the clean up> SQL statment calls.Hi Eliot --Yes, the DoSubclassUninstall method in WebModule isinvoked in rather a barren environment, andsubsequently needs to bootstrap itself somewhat toget connected to things.Attached is a little excerpt from an existingDoSubclassUninstall method, that connects to thedatabase, and allocates a CAPILOGIN using theadministrator credentials. From there on in, you mayallocate DAPISessions etc from this CAPILOGIN asnecessary.I hope this helps you.Cheers,Paul
Tom_Fontanella_(genzymeuser1_-_(deleted))
Paul,That is exactly what I was looking for. I wasn't sure if I was in the wrong area since there were no resources/objects available within that script, but this worked great.Thanks much.Eliot
eLink User
Message from Dave Kerrigan via eLinkHave you looked at 'Adding Database Schema to Livelink' in the Livelink Module Development Guide section of the Builder help? Thisshould explain how to create the scripts that modify schema when your module is installed and uninstalled. You shouldn't need aCAPI session or prgCtx.RegardsDave-----Original Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com]Sent: 27 May 2003 14:21To: eLink RecipientSubject: How to remove Kini & AgentSchedule records on uninstall?How to remove Kini & AgentSchedule records on uninstall?Posted by Gorman, Eliot on 05/27/2003 09:10 AMHello Group,I need to remove some Kini & AgentSchedule records that my custom module has used, when the user uninstalls the module. Thedocumentation I have seen so far says to modify a subclassed 'DoSubClassUninstall' from WebModule. However, that script and the onescalling it do not appear to have a program context (PrgCtx) that I can access to subsequently get the DSessions, CAPIConn sessions,etc. necessary to perform the clean up SQL statment calls.Any suggestions?Thanks much,Eliot Gorman[To reply to this thread, use your normal e-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Tom_Fontanella_(genzymeuser1_-_(deleted))
Dave,Thanks for the feedback. I had looked at that but was under the impression that was more for adding/dropping tables to the db schema. But it looks like it could be done either way. Thank you for the suggestion.Regards,Eliot