In Rebeta agreement form while doing validation I need to change the validation method .
When I clicked validate menu button I found PdsRebateAgreementValidate class from their It hits main()->run(). In Run(), I found validate() method from there I found checkIfLineExists() method.
Now my question is I want to skip the standard method(i.e, checkIfLineExists())... and need to hit my method where I mention same method name(i.e. checkIfLineExists())...In this method I will write my own logic.
Note: I don't want to hit standard method.
Can any one suggest.
You can't use extensions to skip methods. But you can use CoC on checkIfLineExists() and return a different value than what you get from the standard method.
But I don't want to hit standard method
If we use COC first standard will call right?
Example: In that standard method select statement logic is found. But I want my select statement.
As I already said, you can't do that with extensions. Replacing a piece of code inside a method would require changes of the method, which isn't an extension.
If what you need can't be done with extensions, your only option is asking the owner (e.g. Microsoft) to change the code and make it extensible. But that takes time and your request may be rejected; you think very hard if the behaviour you need isn't achievable with extensions. You may have to complete rethink your technical solution, because what you've designed isn't achievable and you need something else.