Hi
I want to change a method of MOrder. Only I don't want to mess with this class. I wanted to redo the same method in a new class and at runtime I want you to read only this method in my new class.
The goal is to make my method without changing the worldwide programming of idempiere
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/2d80d889-f1f9-44b3-9d07-93d6b35631af%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/CA%2BBP53%3DKgxb7ZEjseOwujQyhSHJ5uijNMQpDhAJCZJ8%2Ba-poJg%40mail.gmail.com.
Hi Jorge,You should create your blank model and extends it to org.compiere.model.MOrder, override the methods you need, then create a Model Factory. An example can be found here:
Em qui, 24 de out de 2019 às 16:53, Jorge Babo <jab...@gmail.com> escreveu:
--Hi I want to change a method of MOrder. Only I don't want to mess with this class. I wanted to redo the same method in a new class and at runtime I want you to read only this method in my new class. The goal is to make my method without changing the worldwide programming of idempiere
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idem...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/d7e20721-c2de-41ee-9805-e3b3936a6c80%40googlegroups.com.
class myBusinessLogic {
public static SomeClass myFunc(MOrder order, SomeOtherClass param, ...) {
// do stuff (...)
return result;
}
// some more functions go here (...)
}
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/d7e20721-c2de-41ee-9805-e3b3936a6c80%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/CA%2BBP53%3DKgxb7ZEjseOwujQyhSHJ5uijNMQpDhAJCZJ8%2Ba-poJg%40mail.gmail.com.