AnuKass
1st August 2018, 15:18
hii all...
i create a wrapper ,....and then i slightly change particular function to this...
but it change entire functionality ...
eg..
In wrapper ..
choice.after.update.db-->it have many function like
func1()
func2()
func3()
i want to do madification in func2() itself...
is there any possible to do that.??:(

mark_h
1st August 2018, 17:51
Not sure what wrapper method you use, but typically you cannot change an actual function itself. I have never done this, but I think you could rewrite the event code itself to change what happens. To me to change a specific function like you list you would need the code. What I typically do in my qkey wrapper scripts is let the normal code run then go do the modifications I specifically want.

So for example with you posted i could do 3 type things - I almost always use 2 and 3.
1 - rewrite what happens for choice.after.update.db (duplicating everything the normal session does that I need). Never really done this.
2 - let the sessions choice.after.update.db execute then go do my updates or changes.
3 - Run my stuff first and then let all the normal choice.after.update.db code run.

Not sure if this helps or not.