<?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>Add rows in editable grid</title><link>https://community.appian.com/discussions/f/user-interface/25584/add-rows-in-editable-grid</link><description>I want to add multiple rows in an editable grid layout by selecting a number using Interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add rows in editable grid</title><link>https://community.appian.com/thread/99920?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 16:44:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb694455-a686-4372-bebb-a895e5683cdf</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Like others mentioned, you can make the add row link add whatever you want, whether it&amp;#39;s 1 or 100 rows. However, you should think about what the user experience will be like too. I&amp;#39;d recommend that the actual link at the bottom of the grid always returns 1 item, but you add another place that lets you add multiple rows.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example within the product where we do this. If you want to just add a single row, you use the basic plus icon. However, adding multiple rows has a separate icon where you can designate how many rows you want to add.&lt;img alt=" " src="/resized-image/__size/640x240/__key/communityserver-discussions-components-files/13/add_5F00_multiple_5F00_fields.png" /&gt;&lt;/p&gt;
&lt;p&gt;To actually achieve this, you can then update your append rule to repeat how many items should be added, like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;addRowLink: a!dynamicLink(
  label: &amp;quot;Add Employee&amp;quot;,
  saveInto: {
    a!save(
      local!employees, 
      append(
        local!employees, 
        repeat(
          10,
          recordType!Employee()
        )
      )
    )
  }
),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add rows in editable grid</title><link>https://community.appian.com/thread/99918?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 15:15:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cefbf4f5-b30f-47e1-8d3b-5c4928ab127b</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;In the add new row configuration, you can create a for loop to create more than 1 new&amp;nbsp;row at a time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add rows in editable grid</title><link>https://community.appian.com/thread/99906?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 13:06:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a227952-ab37-46c8-86ac-4c6b4a0c432b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You use the same logic as with the addRowLink parameter of the grid layout component. The only difference is that you create more than one new item.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add rows in editable grid</title><link>https://community.appian.com/thread/99904?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 12:48:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:924bc1d6-cf6e-4f86-9ff1-6fb07f4273ee</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;you can use a richtexticon with dynamiclink.&lt;br /&gt;on the editbale grid array you are displaying. you can append (append()) the new values through a combination&amp;nbsp;&lt;br /&gt;of a!foreach which has an enumerate() as &amp;quot;items&amp;quot; paramater and the&amp;nbsp;expression parameter a certain the map/cdt type etc.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>