<?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>When trying to add a new row, it takes me to a random row that is already on the data</title><link>https://community.appian.com/discussions/f/user-interface/20437/when-trying-to-add-a-new-row-it-takes-me-to-a-random-row-that-is-already-on-the-data</link><description>When I click on &amp;quot;add request url value&amp;quot; It takes me to a random row that it in that data already. But I want it to take me to a new and clear row.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When trying to add a new row, it takes me to a random row that is already on the data</title><link>https://community.appian.com/thread/79683?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 22:12:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:450d108d-bdcc-4f94-b97a-f2fdb96bfec7</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Is it necessary to save into the same ri!requestUrlInputs so many times? I&amp;#39;d suggest&amp;nbsp;trying to format the output of your data so that you only need to save to the variable a single time.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not certain this is the problem, but I think it will be a lot easier to troubleshoot, because you don&amp;#39;t have to worry about the saves happening in a certain order.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When trying to add a new row, it takes me to a random row that is already on the data</title><link>https://community.appian.com/thread/79681?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 20:53:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:810e920b-49cb-4c2e-8480-fd5d05402f1d</guid><dc:creator>Beth</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;          addRowlink: a!dynamicLink(
            label: &amp;quot;Add Request URL Value&amp;quot;,
            value: {
              CRETD_BY_USER_ID: loggedInUser(),
              CRETD_TMST: now(),
            },
            saveInto: {
/*### Reset the grid to make sure its always showing the most current info. Only resets if Edit button wasnt already pressed.*/
              if(ri!readOnlyRequestUrl = true,
              {
                a!save(ri!requestUrlInputs, {}),
                a!save(ri!requestUrlInputs, rule!TMT_GetAllTMTREQURL())
              },
              {}
              ),
              a!save(ri!requestUrlInputs, append(ri!requestUrlInputs, save!value)),
              a!save(ri!readOnlyRequestUrl, false),
              a!save(local!newRowCount, local!newRowCount + 1),
/*### Adds a Temp number incase there are no records. Fixes alot of problems.*/
              if(rule!APN_isEmpty(ri!requestUrlInputs),
              a!save(ri!requestUrlInputs.URL_ID[1], 1),
              {}
              ),
              a!save(local!dropdownSelectedID, tointeger(max(local!totalRowIndex) + 1))
              /*a!save(ri!requestUrlInputs[(local!totalRowIndex + 1)].default, false),*/
            }
          ),
          rowHeader: 1
        ),
          ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When trying to add a new row, it takes me to a random row that is already on the data</title><link>https://community.appian.com/thread/79679?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 20:26:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:971dcbc2-3f72-474d-9e50-9d09076dbc7e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you post your entire addRowLink code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>