Hi guys. I was trying to extend the SalesEditLines form, but I ran into the following problem:
I have to extend the functionality of the reArrange method, but to do that, I need to access the current state of a class on the pre reArrange at the time of the call to the method, but because the pre event handler is static, I can't do that. I'll give an example:
[ExtensionOf(formStr(SalesEditLines))]
final class SalesEditLinesEventHandlers_Extension
{
public someClass someClassInstance = someClass::construct();
[PreHandlerFor(formStr(SalesEditLines), formMethodStr(SalesEditLines, reArrange))]
public static void SalesEditLines_Pre_reArrange(XppPrePostArgs args)
{
//in here I need to access someClassInstance current state
}
}
Is there any way to do that?