<?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: Aikau textbox not being populated by subscription topic in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/aikau-textbox-not-being-populated-by-subscription-topic/m-p/5515#M2715</link>
    <description>&lt;P&gt;The payload of the publish should be an object with a value property, not a simple string. If you enable Aikau logging, you'll likely see a message stating "Attempt made to set form control value by subscription with an inapproriate payload"&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 21:24:36 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-10-08T21:24:36Z</dc:date>
    <item>
      <title>Aikau textbox not being populated by subscription topic</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aikau-textbox-not-being-populated-by-subscription-topic/m-p/5514#M2714</link>
      <description>&lt;P&gt;I'm working on an Aikau page for Alfresco Share containing a custom widget on one side and an Aikau form on the other.&lt;BR /&gt;I would like one of the form inputs to be populated by data obtained from clicking a button in the custom widget, so I declared my input with valueSubscriptionTopic like this:&lt;BR /&gt;&lt;BR /&gt;var dateOfReportTextBox = {&lt;BR /&gt;&amp;nbsp; name: "alfresco/forms/controls/TextBox",&lt;BR /&gt;&amp;nbsp; config: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; fieldId: "DATE_OF_REPORT",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; name: "cm:date-of-report",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; label: "Date of Report",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; placeHolder: "date",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; requirementConfig: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; initialValue: false&lt;BR /&gt;&amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; valueSubscriptionTopic: "SET_DATE_OF_REPORT"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;In my custom widget code I attached an event handler to the button containing this line:&lt;/P&gt;&lt;P&gt;this.alfPublish("SET_DATE_OF_REPORT", "Testing", true); // true for global scope&lt;/P&gt;&lt;P&gt;But the input is not being populated. I verified that "this" refers to the custom widget. Am I misunderstanding the usage of valueSubscriptionTopic?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 05:08:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aikau-textbox-not-being-populated-by-subscription-topic/m-p/5514#M2714</guid>
      <dc:creator>dhodek</dc:creator>
      <dc:date>2020-10-07T05:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau textbox not being populated by subscription topic</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aikau-textbox-not-being-populated-by-subscription-topic/m-p/5515#M2715</link>
      <description>&lt;P&gt;The payload of the publish should be an object with a value property, not a simple string. If you enable Aikau logging, you'll likely see a message stating "Attempt made to set form control value by subscription with an inapproriate payload"&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 21:24:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aikau-textbox-not-being-populated-by-subscription-topic/m-p/5515#M2715</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-10-08T21:24:36Z</dc:date>
    </item>
  </channel>
</rss>

