<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Multi Value CDT</title><link>https://community.appian.com/discussions/f/general/12738/multi-value-cdt</link><description>I&amp;#39;ve defined a CDT as a Multi Value. At run time I will have &amp;#39;n&amp;#39; instances of the object. During runtime I wish to update a specific field for one of the instances of the object but I&amp;#39;m not seeing how to address the field correctly. 
 I cant use array</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Multi Value CDT</title><link>https://community.appian.com/thread/77338?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 12:01:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:564823e3-ba78-4944-95db-0013b914e020</guid><dc:creator>parula0001</dc:creator><description>&lt;p&gt;Hi Paul, can you help me with how you acheived the solution for this? I am facing the same thing. Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi Value CDT</title><link>https://community.appian.com/thread/57008?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 18:14:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fbb344c9-4745-4160-9cc1-e3794378afe7</guid><dc:creator>jonathan.guillen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can either modify the particular object and property within your process model using a script task node or within a SAIL form.&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/script-task.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/script-task.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Based on user actions you can modify the property of an object using a!save() function.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;find the documentation in the following link:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.2/fnc_evaluation_save.html"&gt;a!save() function&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;you can play with the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!animal_cdts: {
    {id: 1,description: &amp;quot;snake&amp;quot;,isActive: true},
    {id: 1,description: &amp;quot;dog&amp;quot;,isActive: true},
    {id: 1,description: &amp;quot;cat&amp;quot;,isActive: true}    
  },
  a!formLayout(
    contents: {
      a!gridLayout(
        headerCells: {
          a!gridLayoutHeaderCell(label: &amp;quot;Description&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Status&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;)
        },
        columnConfigs: {
          a!gridLayoutColumnConfig(weight: 6),
          a!gridLayoutColumnConfig(weight: 3),
          a!gridLayoutColumnConfig(width: &amp;quot;ICON&amp;quot;)
        },
        rows: {
          a!forEach(
            items: local!animal_cdts,
            expression: a!gridRowLayout(
              contents: {
                a!textField(
                  value: property(fv!item,&amp;quot;description&amp;quot;,null),
                  readOnly: true
                ),
                a!textField(
                  value: if(toboolean(property(fv!item,&amp;quot;isActive&amp;quot;,false)),&amp;quot;Active&amp;quot;,&amp;quot;Inactive&amp;quot;),
                  readOnly: true
                ),
                a!imageField(
                  images: a!documentImage(
                    document: a!iconIndicator(
                      icon: &amp;quot;REMOVE&amp;quot;
                    ),
                    link: a!dynamicLink(
                      value: fv!index,
                      saveInto: {
                        a!save(
                          target: fv!item.isActive,
                          value: false
                        )
                      }
                    ),
                    showWhen: toboolean(property(fv!item,&amp;quot;isActive&amp;quot;,false))
                  )
                )
              }
            )
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi Value CDT</title><link>https://community.appian.com/thread/56996?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 11:44:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ffc0e91d-4b06-47ed-b480-4622c1ca503b</guid><dc:creator>pauls0003</dc:creator><description>All sorted .. not enough coffee this morning.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>