<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get event when custom stencil  value changed? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12039#M5318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'll have to emit event from custom stencil component to the main component using Angular 4.&amp;nbsp; There is no ADF Form event&amp;nbsp; &amp;nbsp;Is It correct ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 06:54:34 GMT</pubDate>
    <dc:creator>dharmraj</dc:creator>
    <dc:date>2018-09-11T06:54:34Z</dc:date>
    <item>
      <title>How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12033#M5312</link>
      <description>I am using stencil in form . So i created&amp;nbsp; 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&amp;nbsp;event when&amp;nbsp; Value of custom Stencil&amp;nbsp;changed&amp;nbsp; in ADF Form ?Ex : Custom Sten</description>
      <pubDate>Tue, 11 Sep 2018 05:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12033#M5312</guid>
      <dc:creator>dharmraj</dc:creator>
      <dc:date>2018-09-11T05:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12034#M5313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your custom stencil needs to import the FormService and invoke corresponding events. See &lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/core/form/services/form.service.ts#L42" title="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/core/form/services/form.service.ts#L42" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/form.service.ts at development · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 05:29:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12034#M5313</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-11T05:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12035#M5314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have to&amp;nbsp; import&amp;nbsp; form service in&amp;nbsp; stencil custom component . If&amp;nbsp; I&amp;nbsp; update any other form field value from this component then it will reflect.&lt;/P&gt;&lt;P&gt;ex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Inside custom Stencil component&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FormService.formFieldValueChanged&amp;nbsp; this event will call and i will get all field in custom stencil&amp;nbsp; i can update&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Is it correct ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #727174; border: 0px; font-weight: bold; font-size: 14px;"&gt;FormService.formFieldValueChanged.subscribe ((e :FormFieldEvent) {&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #727174; border: 0px; font-weight: bold; font-size: 14px;"&gt;const fields = e.form.getFormFields();&lt;BR /&gt;const name = fields.find(f =&amp;gt; f.id === 'name');&lt;BR /&gt;name.value ="dharmraj"&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #727174; border: 0px; font-weight: bold; font-size: 14px;"&gt;});&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 05:43:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12035#M5314</guid>
      <dc:creator>dharmraj</dc:creator>
      <dc:date>2018-09-11T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12036#M5315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that '&lt;STRONG&gt;formFieldValueChanged&lt;/STRONG&gt;' is raised on each field value change as the name of the event states.&lt;/P&gt;&lt;P&gt;You can listen to this event from any place. If you want to "emit" this event, you need to call "formFieldValueChanged.emit(...)". Please refer to documentation or source code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 05:50:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12036#M5315</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-11T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12037#M5316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Hi Denys,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;formFieldValueChanged event&amp;nbsp; is not calling for custom stencil component.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&lt;SPAN style="color: #c586c0; border: 0px; font-weight: inherit;"&gt;export&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0; border: 0px; font-weight: inherit;"&gt;TaskAddCommentComponent&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit;"&gt;extends&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0; border: 0px; font-weight: inherit;"&gt;WidgetComponent {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;STRONG&gt;&amp;nbsp;ngOnInit(): void {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.formService.formFieldValueChanged.subscribe(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;( e: FormFieldEvent ) =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log(e);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;})&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;STRONG&gt;&amp;nbsp;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;STRONG&gt;This code is not working .&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;STRONG style="color: #4ec9b0; border: 0px; font-weight: bold;"&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&lt;SPAN style="color: #4ec9b0; border: 0px; font-weight: inherit;"&gt;export class TaskDetailComponent implements OnInit, OnDestroy, AfterViewInit {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;this.formRenderingService.setComponentTypeResolver('muraai_comments', () =&amp;gt; TaskAddCommentComponent, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;ngOnInit(): void {&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.formService.formFieldValueChanged.subscribe(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;( e: FormFieldEvent ) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log(e);&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;})&lt;/P&gt;&lt;P style="border: 0px; font-weight: 400;"&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Here code is working. But when custom&amp;nbsp; stencil component&amp;nbsp; input box value is changing that time its not calling&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 06:13:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12037#M5316</guid>
      <dc:creator>dharmraj</dc:creator>
      <dc:date>2018-09-11T06:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12038#M5317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I answered above, you need to raise (emit) event yourself from the custom stencil. It is not going to magically raise event itself &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 06:15:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12038#M5317</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-11T06:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12039#M5318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'll have to emit event from custom stencil component to the main component using Angular 4.&amp;nbsp; There is no ADF Form event&amp;nbsp; &amp;nbsp;Is It correct ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 06:54:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12039#M5318</guid>
      <dc:creator>dharmraj</dc:creator>
      <dc:date>2018-09-11T06:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get event when custom stencil  value changed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12040#M5319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 06:56:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-event-when-custom-stencil-value-changed/m-p/12040#M5319</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-11T06:56:04Z</dc:date>
    </item>
  </channel>
</rss>

