<?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>How to add Columns to an editable Grid Dynamically?</title><link>https://community.appian.com/discussions/f/user-interface/14440/how-to-add-columns-to-an-editable-grid-dynamically</link><description>HI All, 
 
 Is there any possibility in Appian to add columns in an editable grid dynamically on a click of link ? 
 
 Thanks in Advance. 
 
 Note: Functionality which I&amp;#39;m looking for needs a dynamic addition of columns?, I&amp;#39;m aware of the option that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add Columns to an editable Grid Dynamically?</title><link>https://community.appian.com/thread/64929?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 04:09:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fc397eb-e18d-473a-9468-ae684ac9ee7e</guid><dc:creator>jeromew</dc:creator><description>&lt;p&gt;Hi adithyay,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached example SAIL code to show you how to dynamically add a column with a link.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!data: {
    1,
    2,
    3,
    4,
    5
  },
  {
    a!linkField(
      links: a!dynamicLink(
        label: &amp;quot;Add New Column&amp;quot;,
        saveInto: a!save(
          target: local!data,
          value: a!forEach(
            items: local!data,
            expression: append(
              fv!item,
              &amp;quot;&amp;quot;
            )
          )
        )
      )
    ),
    a!gridLayout(
      label: &amp;quot;Editable Grid&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      headerCells: {
        a!forEach(
          items: local!data,
          expression: if(
            fv!isFirst,
            a!forEach(
              items: fv!item,
              expression: a!gridLayoutHeaderCell(
                label: &amp;quot;Column &amp;quot; &amp;amp; fv!index
              )
            ),
            {}
          )
        )
      },
      columnConfigs: {
        a!forEach(
          items: local!data,
          expression: if(
            fv!isFirst,
            a!forEach(
              items: fv!item,
              expression: a!gridLayoutColumnConfig(
                width: &amp;quot;DISTRIBUTE&amp;quot;
              )
            ),
            {}
          )
        )
      },
      rows: {
        a!forEach(
          items: local!data,
          expression: a!gridRowLayout(
            contents: {
              a!forEach(
                items: fv!item,
                expression: a!textField(
                  label: &amp;quot;Text&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: fv!item,
                  saveInto: fv!item,
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  validations: {}
                )
              )
            }
          )
        )
      },
      selectionSaveInto: {},
      validations: {},
      shadeAlternateRows: true,
      saveInto: local!data
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I hope this helps you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add Columns to an editable Grid Dynamically?</title><link>https://community.appian.com/thread/64928?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 03:07:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c95cac0e-bb21-4f7b-a5b2-b22d6f3ffff5</guid><dc:creator>divyas417665</dc:creator><description>I don&amp;#39;t think it is possible to add columns dynamically as we can&amp;#39;t add the respective column in the CDT or data type automatically.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>