How to make a Class Enhancement Implementation not run?
I enhanced a standard Class, to created a over-write method. But Now i do not want this implementation run,
how to make it? And I do not want delete it at all.
I tried inactivate the enhancement implementation also inactivete that method. But still run the old active one.
In the Enhancement you can use switches to activate/deactivate enhancements:
In the property-Section of the Enhancement you can enter a switch.
It is possible to create own switches and use them in own enhancements, but I don't know how to create, because I never needed.
I am not sure, but I think, that switches can only be activate one time and then you can not deactivate them again.
Otherwise I would comment the Code or, if you need to change it often, write a Method or function to check, if your implementation is active or inactive at the moment. Use the Name of the Enhancement as a Parameter and you can reuse this method, if you need it in an other enhancement.