<?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 row</title><link>https://community.appian.com/discussions/f/user-interface/26102/add-row</link><description>whenever i click on add it&amp;#39;s creating blank row in in RI, but no in the interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: add row</title><link>https://community.appian.com/thread/102244?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 12:26:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87b0b726-2b35-4b69-bf09-b597117f759d</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Now the variable which you are using to store the id is of type integer and that is ignoring the text value while storing so to get rid of this change the data type of your contractId_int.&lt;/p&gt;
&lt;p&gt;If it works for you always verify the answers so that other community members can also know you problem is resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102243?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 12:19:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7c1c1c5-189b-45ca-bae3-54b73a5b9285</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;yes, i corrected it.. it&amp;#39;s working fine now. but am getting error in dropdown&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1664626662586v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;when i select value for the dropdown am getting error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1664626783644v2.png" alt=" " /&gt;could see the values but when i select it it&amp;#39;s giving error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102242?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 12:12:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a92b3037-99f3-4cab-ad5f-1bb8ba6cfc89</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;But why you want to use&amp;nbsp;&lt;span&gt;getcontractid_cdt&amp;nbsp; for looping?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I am not getting why you want to run loop over dropdown values you can show all your dropdown values using choice labels and choice values and to add new data and save it you can use&amp;nbsp;contractsaved_cdt directly and run the loop over it&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102241?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 11:59:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:713b57ca-0f8a-46dd-9ec0-0d5291c2b700</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;yes, from that getcontractid_cdt am fetching data to show the in dropdown.&lt;/p&gt;
&lt;p&gt;once i save that dropdown that values has to be stored in contractsaved_cdt and whenever add row that has to be added to contractsaved_cdt&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;to below the added row should show the same values what it has shown at the first time(i mean same dropdown values to be shown)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102240?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 11:53:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f01792f9-9bb0-47b5-ab52-08d880b3597a</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Okay check that you are using a different variable for looping and when you are adding a new row you are using a different rule input. I think they should be same.&lt;/p&gt;
&lt;p&gt;rule input you are using for looping.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1664625174223v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;rule input in which you are adding a new row.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1664625238170v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102239?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 11:46:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa98d6b8-a835-4b80-b1b6-588fbdc02aae</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;see i have written the same code&lt;/p&gt;
&lt;p&gt;but still it is not creating the row instead their are 13 rows it has created 13 rows by default&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1664624822068v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102237?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 11:40:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4622c03c-8a1d-44b5-b835-765d893185d9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Pass your Ri (crAPPContractExtension_cdt) in the items parameter of the a!forEach() function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add row</title><link>https://community.appian.com/thread/102236?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 10:30:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5629b7b-5e0b-4938-b18b-8d255900de9e</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Can you share your code here are you using for loop to display rows?&lt;/p&gt;
&lt;p&gt;check line number 15&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!items: {
    { item: &amp;quot;Item 1&amp;quot;, qty: 1, unitPrice: 10 },
    { item: &amp;quot;Item 2&amp;quot;, qty: 2, unitPrice: 20 }
  },
  a!gridLayout(
    label: &amp;quot;Products&amp;quot;,
    instructions: &amp;quot;Update the item name, quantity, or unit price.&amp;quot;,
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Item&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Qty&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Unit Price&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Total&amp;quot;, align: &amp;quot;RIGHT&amp;quot;)
    },
    rows: a!forEach( /* loop to show all rows*/
      items: local!items,
      expression: a!gridRowLayout(
        contents: {
          a!textField(
            value: fv!item.item,
            saveInto: fv!item.item
          ),
          a!integerField(value: fv!item.qty, saveInto: fv!item.qty),
          a!floatingPointField(
            value: fv!item.unitPrice,
            saveInto: fv!item.unitPrice
          ),
          a!textField(
            value: tointeger(fv!item.qty) * todecimal(fv!item.unitPrice),
            readOnly: true,
            align: &amp;quot;RIGHT&amp;quot;
          )
        }
      )
    ),
    rowHeader: 1,
    addRowLink: a!dynamicLink(
      label: &amp;quot;Add row&amp;quot;,
      saveInto: a!save(
        local!items,
        append(
          local!items,
          { item: null, qty: null, unitPrice: null }
        )
      )
    )
  )
)a!localVariables(
  local!items: {
    { item: &amp;quot;Item 1&amp;quot;, qty: 1, unitPrice: 10 },
    { item: &amp;quot;Item 2&amp;quot;, qty: 2, unitPrice: 20 }
  },
  a!gridLayout(
    label: &amp;quot;Products&amp;quot;,
    instructions: &amp;quot;Update the item name, quantity, or unit price.&amp;quot;,
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Item&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Qty&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Unit Price&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Total&amp;quot;, align: &amp;quot;RIGHT&amp;quot;)
    },
    rows: a!forEach( /* loop to show all rows*/
      items: local!items,
      expression: a!gridRowLayout(
        contents: {
          a!textField(
            value: fv!item.item,
            saveInto: fv!item.item
          ),
          a!integerField(value: fv!item.qty, saveInto: fv!item.qty),
          a!floatingPointField(
            value: fv!item.unitPrice,
            saveInto: fv!item.unitPrice
          ),
          a!textField(
            value: tointeger(fv!item.qty) * todecimal(fv!item.unitPrice),
            readOnly: true,
            align: &amp;quot;RIGHT&amp;quot;
          )
        }
      )
    ),
    rowHeader: 1,
    addRowLink: a!dynamicLink(
      label: &amp;quot;Add row&amp;quot;,
      saveInto: a!save(
        local!items,
        append(
          local!items,
          { item: null, qty: null, unitPrice: null }
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>