<?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 Dropdown in dynamic table in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14623#M6441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am trying to set values in a dropdown field in a dynamic table depending on conditions using Script task. For string fields i usually use the folllowing line in my code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;tab_2.push({ident:tab_1[i].ident,value:'Yes'})&lt;/EM&gt;&lt;/SPAN&gt;;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In here &lt;SPAN style="color: #3366ff;"&gt;'ident'&lt;/SPAN&gt; (string) is the first column and &lt;SPAN style="color: #3366ff;"&gt;'value'&lt;/SPAN&gt; (string) is the second in my dynamic table named &lt;SPAN style="color: #3366ff;"&gt;'tab_2'&lt;/SPAN&gt;. In this case the code is running and the table is fulfilled. The problem is when trying to change 'value' as dropdown with options (Yes, No), that way the value field remain empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is any body has an idea about how to set values to a dropdown field in a dynamic table using javascript ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 12:19:50 GMT</pubDate>
    <dc:creator>aextractor</dc:creator>
    <dc:date>2017-08-28T12:19:50Z</dc:date>
    <item>
      <title>Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14623#M6441</link>
      <description>Hi,i am trying to set values in a dropdown field in a dynamic table depending on conditions using Script task. For string fields i usually use the folllowing line in my code:tab_2.push({ident:tab_1[i].ident,value:'Yes'});&amp;nbsp;In here 'ident' (string) is the first column and 'value' (string) is the secon</description>
      <pubDate>Mon, 28 Aug 2017 12:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14623#M6441</guid>
      <dc:creator>aextractor</dc:creator>
      <dc:date>2017-08-28T12:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14624#M6442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about the dynamic feature of the Alfresco Process Services product? If so, this post should probably belong in the Process Services space. Let me know and I will move it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 12:43:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14624#M6442</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-28T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14625#M6443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right, thank you to move it to the BPM service&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 12:46:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14625#M6443</guid>
      <dc:creator>aextractor</dc:creator>
      <dc:date>2017-08-28T12:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14626#M6444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haboubi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only need to reference your dropdown id property to an object that contains a property name that will hold your value which is the option predefined in the columns of your table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;tab_2.push(&lt;BR /&gt;{&lt;BR /&gt;"dropdown_id":{"name":"option_1"}, //if you want to choose option 1 of the dropdown&lt;BR /&gt;...&lt;BR /&gt;}&lt;BR /&gt;)&lt;/EM&gt;&lt;/SPAN&gt;;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Chemss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 10:41:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14626#M6444</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-08-29T10:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14627#M6445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Chemsseddine it is perfectly running in my code !&lt;/P&gt;&lt;P&gt;Really appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 11:00:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14627#M6445</guid>
      <dc:creator>aextractor</dc:creator>
      <dc:date>2017-08-29T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14628#M6446</link>
      <description>&lt;P&gt;I am new to Alfresco activiti. I am not able to push&amp;nbsp; my code to dynamic table. My problem statement is I have some list of Json(which I have in one of my script task i.e. is in groovy) which I need to populate to Dynamic table. I set that Json variable in execution. Now on my activiti form in javascript I am trying to display value for that I have written some sample piece but no luck&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var test_json=task.getVariable("test_json");&amp;nbsp; &amp;nbsp;(this is not working can you suggest how to read varibale in javascript)&lt;BR /&gt;alert(test_json);&lt;/P&gt;&lt;P&gt;var labelIDJson=scope.findFormFieldWithId(scope.allFormFields, 'label1')&amp;nbsp; (label1 is my table ID)&lt;/P&gt;&lt;P&gt;var execID=labelIDJson.columnDefinitions[0].id;&amp;nbsp; (getting column ID's)&amp;nbsp;&lt;BR /&gt;alert(execID);&lt;BR /&gt;&lt;BR /&gt;labelID.push({execID:'no',wfmName:'yes'});&amp;nbsp; &amp;nbsp;(not working )&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:43:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14628#M6446</guid>
      <dc:creator>ajindal10</dc:creator>
      <dc:date>2019-11-29T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14629#M6447</link>
      <description>&lt;P&gt;Can someone please help here ??&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 14:13:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dropdown-in-dynamic-table/m-p/14629#M6447</guid>
      <dc:creator>ajindal10</dc:creator>
      <dc:date>2019-12-01T14:13:31Z</dc:date>
    </item>
  </channel>
</rss>

