<?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>Interface</title><link>https://community.appian.com/discussions/f/user-interface/30597/interface</link><description>I using a record relationship (1 - Many) (Dept -- Employee (multiple)). I am trying to create a interface, where in top grab the Dept details and in bottom Employee details for that Department , which is Editable grid. When I try to addRowLink - its not</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface</title><link>https://community.appian.com/thread/121934?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 04:10:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f9063613-563e-49ed-81b1-a659022ed36d</guid><dc:creator>nasirs4970</dc:creator><description>&lt;p&gt;Hii &lt;a href="/members/saravanang0001"&gt;saravanang0001&lt;/a&gt;&amp;nbsp;,&lt;br /&gt; If you are satisfied with this, please verify it, as this confirmation can boost my confidence&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121878?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:40:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd458ed5-0abb-4261-a618-31b9abe37b19</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/user-interface/30597/interface/121853"]THIS IS COMPLETE NONSENSE! THE insert() FUNCTION DOES NOT INSERT ANYTHING INTO ANY DATABASE!!!!![/quote]
&lt;p&gt;&lt;em&gt;ChatGPT strikes again&lt;/em&gt;, maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121876?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:11:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:134d88e6-81ad-4109-933d-7f0c800e324f</guid><dc:creator>saravanang0001</dc:creator><description>&lt;p&gt;Prefect , thanks - it works. I have to refer the master record type (Dept).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121853?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 07:32:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87f48d10-ccd9-42aa-8473-47e3b94d99f5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;!!!!! ATTENTION !!!!!!!&lt;/p&gt;
&lt;p&gt;&amp;quot;The insert() function takes the record type and the record values as arguments, and it persists the record to the database.&amp;quot;&lt;/p&gt;
&lt;p&gt;THIS IS COMPLETE NONSENSE! THE insert() FUNCTION DOES NOT INSERT ANYTHING INTO ANY DATABASE!!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121845?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 06:33:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb2b15fb-15a8-48cd-8fbb-2bb2fccbcede</guid><dc:creator>reynaldor2500</dc:creator><description>&lt;p&gt;The issue with the addRowLink is that it is not saving the new employee record into the database. The saveInto property of the addRowLink is using the append() function to create a new record in memory, but it is not actually persisting the record to the database. You need to use the insert() function &lt;a href="https://elastic-man.com"&gt;elastic man&lt;/a&gt;&amp;nbsp;instead of the append() function. The insert() function takes the record type and the record values as arguments, and it persists the record to the database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121844?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 06:32:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd3345a5-6a20-41cf-a369-62f5fce2bba5</guid><dc:creator>nasirs4970</dc:creator><description>&lt;p&gt;Hii&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/saravanang0001"&gt;saravanang0001&lt;/a&gt;,&lt;br /&gt;since you are using the foreach() in the rows parameter of gridLayout on the dept rule input you have to also append this to the dept rule input you can take reference to my code and let me know if you face any issues.&lt;br /&gt;thankyou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121693?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 15:31:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58373a18-ec68-4b52-a5f4-dd738eff6699</guid><dc:creator>saravanang0001</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;clicked the Add Employee link twice - in array I can see 2&amp;nbsp;rows, but in the Grid I don&amp;#39;t see 2 rows to enter my details.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1699975765664v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121670?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 07:52:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ffa4db8-0c2b-456c-88e1-ee40db749e0a</guid><dc:creator>nasirs4970</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/saravanang0001"&gt;saravanang0001&lt;/a&gt;,&lt;br /&gt;you can take reference from this code, In this I just replaced your record with mine having 1-many relations to add a new row.&lt;br /&gt;hope it will help you&lt;br /&gt;thankyou&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  a!formLayout(
    label: &amp;quot;Department &amp;amp; Employee Relationship&amp;quot;,
    contents: {
      a!sectionLayout(
        label: &amp;quot;Department&amp;quot;,
        contents: {
          a!textField(
            label: &amp;quot;EMail&amp;quot;,
            labelPosition: &amp;quot;ADJACENT&amp;quot;,
            value: ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{7a392978-7d23-4f26-b793-21b77b8dcd7a}Email&amp;#39;],
            saveInto: ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{7a392978-7d23-4f26-b793-21b77b8dcd7a}Email&amp;#39;],
            refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
            validations: {}
          ),
          a!textField(
            label: &amp;quot;userId&amp;quot;,
            labelPosition: &amp;quot;ADJACENT&amp;quot;,
            value :ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{9a3cb925-d459-4387-8650-c358cd83c200}userIdPk&amp;#39;],
            saveInto: ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{9a3cb925-d459-4387-8650-c358cd83c200}userIdPk&amp;#39;],
            refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
            validations: {}
          ),
          a!sectionLayout(
            label: &amp;quot;Employee Details&amp;quot;,
            contents: {
              a!gridLayout(
                label: &amp;quot;&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                headerCells: {
                  a!gridLayoutHeaderCell(label: &amp;quot;Employee Number&amp;quot;),
                  a!gridLayoutHeaderCell(label: &amp;quot;Employee Name&amp;quot;),
                },
                columnConfigs: {},
                rows: {
                  a!forEach(
                    items : ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.relationships.{da25471d-3af8-4d3a-8a55-262c411d41d6}uaEmailAuthentication&amp;#39;],
                    expression: a!gridRowLayout(
                      contents: {
                        a!textField(
                          label : &amp;quot;emailAuthenticationId&amp;quot;,
                          value: fv!item[&amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{1b8832e2-14cb-4072-834d-55961f1348ad}EmailAuthenticationidPk&amp;#39;],
                          saveInto: fv!item[&amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{1b8832e2-14cb-4072-834d-55961f1348ad}EmailAuthenticationidPk&amp;#39;]
                        ),
                        a!textField(
                          label : &amp;quot;Email&amp;quot;,
                          value: fv!item[&amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{420c92b7-55eb-4b85-9466-c479d537c596}emailId&amp;#39;],
                          saveInto: fv!item[&amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{420c92b7-55eb-4b85-9466-c479d537c596}emailId&amp;#39;]
                        )
                      }
                    )

                  )
                },
                addRowLink: a!dynamicLink(
                  label : &amp;quot;Add Employee&amp;quot;,
                  saveInto:
                  {
                    a!save(
                      ri!email,
                      append(
                        ri!email,
                        &amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication&amp;#39;(
                          &amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{420c92b7-55eb-4b85-9466-c479d537c596}emailId&amp;#39;: null,
                          &amp;#39;recordType!{d0cb3fc5-719f-4354-a800-13932d8ce546}UA Email Authentication.fields.{1b8832e2-14cb-4072-834d-55961f1348ad}EmailAuthenticationidPk&amp;#39;: null
                        )
                      )
                    ),
                    a!save(
                      ri!userDetails,
                    &amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail&amp;#39;(
                      &amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{9a3cb925-d459-4387-8650-c358cd83c200}userIdPk&amp;#39;: ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{9a3cb925-d459-4387-8650-c358cd83c200}userIdPk&amp;#39;],
                      &amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{7a392978-7d23-4f26-b793-21b77b8dcd7a}Email&amp;#39;: ri!userDetails[&amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.fields.{7a392978-7d23-4f26-b793-21b77b8dcd7a}Email&amp;#39;],
                      &amp;#39;recordType!{d8d2946d-462b-404a-ba5e-d96036a0edc1}UA User Detail.relationships.{da25471d-3af8-4d3a-8a55-262c411d41d6}uaEmailAuthentication&amp;#39;: ri!email
                    )
                    )
                  }

                ),
                selectionSaveInto: {},
                validations: {},
                rowHeader: 1,
                shadeAlternateRows: true
              )
            }
          )
        }
      )
    },
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          submit: true,
          style: &amp;quot;PRIMARY&amp;quot;,
          loadingIndicator: true
        )
      },
      secondaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Cancel&amp;quot;,
          value: true,
          saveInto: {},
          submit: true,
          style: &amp;quot;NORMAL&amp;quot;,
          validate: false
        )
      }
    )
  )
) &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121664?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 06:17:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ef270b2-a4de-47d4-8545-d662d38ef157</guid><dc:creator>mounikay348530</dc:creator><description>&lt;p&gt;Hi , first define in this way,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; local!gridData&lt;/strong&gt;: {&lt;br /&gt; &amp;#39;recordType!CMN Document&amp;#39;(&lt;br /&gt; &amp;#39;recordType!CMN Document.fields.appId&amp;#39;: local!applId,&lt;br /&gt; &amp;#39;recordType!CMN Document.fields.isActive&amp;#39;: true,&lt;br /&gt; &amp;#39;recordType!CMN Document.fields.isLitigation&amp;#39;: false,&lt;br /&gt; &amp;#39;recordType!CMN Document.fields.addedBy&amp;#39;: local!loggedInUser,&lt;br /&gt; &amp;#39;recordType!CMN Document.fields.addedOn&amp;#39;: now()&lt;br /&gt; )&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;and then write addRowLink in below mentioned way&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; addRowlink:&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; a!dynamicLink(&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; label: &amp;quot;Add New Document&amp;quot;,&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; value: ri!documentsData,&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; saveInto: {&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; a!save(&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; local!gridData,&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; append(local!gridData, local!nullGrid)&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; )&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt; },&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;em&gt;),&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;hope this gives you the answer &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/121663?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 04:47:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f207f0e-cdc5-4274-8aaa-3b8fec004073</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;Check the below link for more details&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://docs.appian.com/suite/help/23.4/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html"&gt;https://docs.appian.com/suite/help/23.4/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And use insert -&amp;gt; code option to insert the code so that it will be easily readable&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>