From: eLink Discussion: Development Discussion [mailto:development@elinkkc.opentext.com] Sent: maandag 10 januari 2005 13:42To: eLink RecipientSubject: customizationsrt WrapScript happening before patches customizationsrt WrapScript happening before patches Posted by EU0013859 (Pollock, David) on 01/10/2005 07:37 AM I am trying to override a function using CustomizationsRT WrapScripts(). It appears that WrapScripts (which I call from my orphaned object's __Init( ) function ) is running *before* patches are being applied, so that after WrapScripts replaces the target function it then gets overwritten by a patch. If I put a breakpoint into the __Init( ) function then it appears to run in the desired order, ie after patches. Is there some additional magic needed to force the __Init( ) to run *after* patches are applied??Thanks, -Dave
From: eLink Discussion: Development Discussion [mailto:development@elinkkc.opentext.com] Sent: maandag 10 januari 2005 18:27To: eLink RecipientSubject: Hans, Hans, Posted by EU0013859 (Pollock, David) on 01/10/2005 12:23 PM In reply to: RE customizationsrt WrapScript happening before patches Posted by hstoop (Stoop, Hans) on 01/10/2005 09:42 AM Hans, Thanks, I was able to get this to work (creating the Patch orphan feature that references my override object took some trial and error; I finally created a global reference to my override object which I then moved to the patch orphan, and this seems to work). Maybe I'm missing something, but it still is odd to me that patches are applied *after* ospace __Init( ) functions are called, instead of *before*. Doesn't OT ever have to release a patch that fixes an __Init( ) function? And doesn't the fact that a patch will wipe out a WrapScript( ) function that is called the documented way (via __Init( )) cause lots of trouble for people who use WrapScript( )?-Dave