<?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 Access values in a dynamic table in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/access-values-in-a-dynamic-table/m-p/20999#M9221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having a dynamic table like this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Quantity&lt;/TH&gt;&lt;TH&gt;Activity&lt;/TH&gt;&lt;TH&gt;Unit&lt;/TH&gt;&lt;TH&gt;Amount&lt;/TH&gt;&lt;TH&gt;Total&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Consulting Project A&lt;/TD&gt;&lt;TD&gt;hour&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Consulting Projekt B&lt;/TD&gt;&lt;TD&gt;hour&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Consulting Projekt C&lt;/TD&gt;&lt;TD&gt;hour&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. I managed to calculate the "Total" column automatically using the &lt;EM&gt;formTableFieldValueChanged&lt;/EM&gt; event.&lt;/P&gt;&lt;P&gt;Additionally I'd like to display to total sum (column "Total")&amp;nbsp;of all rows in a separate text field. In this example&amp;nbsp;the&amp;nbsp;total sum&amp;nbsp;should&amp;nbsp;be &lt;STRONG&gt;330&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably would use the &lt;EM&gt;formTableBeforeComplete &lt;/EM&gt;event&amp;nbsp;that gives me the "field" parameter. With "console.log(field);" I learnt the structure of the dynamic table but fail to read the "value:Array Object" construct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/13474_Dynamic Table structure.PNG" style="width: 620px; height: 350px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methought that someone has done this before and could give an example how to read the values of a dynamic table content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 16:11:40 GMT</pubDate>
    <dc:creator>mrahn</dc:creator>
    <dc:date>2017-04-28T16:11:40Z</dc:date>
    <item>
      <title>Access values in a dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-values-in-a-dynamic-table/m-p/20999#M9221</link>
      <description>Dear community.Having a dynamic table like this ..QuantityActivityUnitAmountTotal3Consulting Project Ahour501501Consulting Projekt Bhour1201202Consulting Projekt Chour3060.. I managed to calculate the "Total" column automatically using the formTableFieldValueChanged event.Additionally I'd like to di</description>
      <pubDate>Fri, 28 Apr 2017 16:11:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-values-in-a-dynamic-table/m-p/20999#M9221</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-28T16:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access values in a dynamic table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-values-in-a-dynamic-table/m-p/21000#M9222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you already have the whole "scope" available, you can pretty much do anything you want! Just go through the scope object (console.log) and find the things you need and apply any logic you want! I just happened to have something similar to meet your needs at my end - see attached. Hopefully this is something you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 21:37:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-values-in-a-dynamic-table/m-p/21000#M9222</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-28T21:37:47Z</dc:date>
    </item>
  </channel>
</rss>

