Hello,
As usual, I make my call to a java method in this way:
<field name="archived" title="Archiver" onChange="com-axelor-apps-contract-method-testAppel"/>
<!-- Action methode JAVA -->
<action-method name="com-axelor-apps-contract-method-testAppel">
<call class="com.axelor.apps.contract.web.ContractController" method="testAppel"/>
</action-method>
But it doesn’t work… my java class is this one. Looks like the onChange event is not firing on check of the archived button.
package com.axelor.apps.contract.web;
import com.axelor.rpc.ActionRequest;
import com.axelor.rpc.ActionResponse;
public class ContractController {
public void testAppel(ActionRequest request, ActionResponse response) {
response.setAlert("Mon appel marche !");
}
}
An idea ? Please.