how to perform onchange event for a column/field in editable detail.

Hi Team,

I would like to perform an operation on the change of a field in editable detail.
But the onchnage event doesn't trigger.

 

Step 1: Below  is the editable detail, when the value in document field is changed an operation has to be performed (custom logic)


Step 2: Updated the below code in this schema UsrCourierCertDetail (Title: Detail schema: "Acceptance certificates")

attributes:{
   "UsrDocument": {
				dependencies: [{
				  columns: ["UsrDocument"], //field to trigger change event for
				  methodName: "onDocumentchange" //method to execute
				}]
			}
}
 
 
	onDocumentchange :  function(){
            	this.console.log("document chnged")	;
            },
 

but, this Ondocumentchange() is not triggered when the value in document field (UsrDocument) is modified.

kindly guide me on this.

Regards,

Bhoobalan P.

Like 0

Like

4 comments
Best reply

Add the change events to the page for the detail, not in the detail - even though this is an editable detail. It should work if added there. 

Ryan

Add the change events to the page for the detail, not in the detail - even though this is an editable detail. It should work if added there. 

Ryan

Hi Bhoobalan, 

Please follow Ryan's answer, we tested this implementation and it actually works.

 

Best Regards, 

 

Bogdan L.

Ryan Farley,

Thanks for the response and it worked.

Bogdan Lesyk,

Thanks, I followed the implementation on the page for the detail. It worked.

Show all comments