How to get event when custom stencil value changed?

cancel
Showing results for 
Search instead for 
Did you mean: 
dharmraj
Active Member

How to get event when custom stencil value changed?

I am using stencil in form . So i created  UI to replace stencil in ADF Form.

FormService.formFieldValueChanged method caling when form input value changed .But Its not calling when custom Stencil value changed . How can i get event when  Value of custom Stencil changed  in ADF Form ?

3 Replies
dharmraj
Active Member

Re: How to get event when custom stencil value changed?

hey Ciju Joseph‌, is there any workaround available?

mdtabrezmca
Established Member II

Re: How to get event when custom stencil value changed?

I think what you are looking at is Field property of the custom stencil.This will give you all the attributes of a stencil.

alfresco-ng2-components/form-field.model.md at master · Alfresco/alfresco-ng2-components · GitHub 

If you are looking at the custom stencil events then it is just another componenet in angular 2, It has its own dom elements associated with it so you can call the events in the same way.

cjose
Senior Member II

Re: How to get event when custom stencil value changed?

Assuming that your stencil is an extension of WidgetComponent & if you are updating the stencil's field value correctly it should trigger an event! If that is not happening, please raise a bug with the ADF team with a sample snippet to reproduce this issue!

Ciju