<?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>Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/discussions/f/general/30048/data-is-not-refreshed-when-passing-from-parent-interface-to-child</link><description>I have a parent Interface calling 2 child interfaces. Both the child interfaces are grids. The first grid shows previously added data and has capability to select a row and add it to the bottom grid using Select button. The second grid has search fields</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119392?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:29:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a741243-dfc0-4deb-b461-ab36eb086f53</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I wrote a blogpost about data flow in interfaces a while ago. That might help you.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://appian.rocks/2022/07/05/data-in-interfaces/"&gt;https://appian.rocks/2022/07/05/data-in-interfaces/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In general, I suggest to invest some research time in a much more simplified version of what you want to do. Once working and fully understood, go back to solving your&amp;nbsp;issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119391?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:26:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9912a63e-3b33-421d-a320-557872ea41bf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You don&amp;#39;t. I just wanted to make sure that the issue is not coming from one of the nested expressions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119388?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:11:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdd27d9b-1bc4-4679-bcdf-598dd9221741</guid><dc:creator>lalithap4822</dc:creator><description>&lt;p&gt;Expression uses ri! value which is coming from Grid 1. Can you please help where do I need to specify a!refreshVariable? Grid 1 code is attached in below response&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1695039004051v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119387?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:678369f9-0a32-4b3b-9c70-4c737f76b559</guid><dc:creator>lalithap4822</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!refresh:false,
  local!selection,
  local!selectedRow,
  {
    a!sectionLayout(
      label: &amp;quot;&amp;quot;,
      contents: {
        a!gridField(
          data: todatasubset(ri!substances_HTTP, fv!pagingInfo),
          columns: {
            a!gridColumn(
              label: &amp;quot;Chem Type&amp;quot;,
              value: if(
                find(&amp;quot;$&amp;quot;,fv!row.chemicalType,1)&amp;gt;1,
                fv!row.chemicalType,
                fv!row.chemicalType &amp;amp;&amp;quot;$&amp;quot;
                )
            ),
            a!gridColumn(
              label: &amp;quot;Submission Chemical Name&amp;quot;,
              value: fv!row.scientificName
            ),
            a!gridColumn(
              label: &amp;quot;Submission CAS Number&amp;quot;,
              value: rule!DCC_formatCASNumber(fv!row.registryId)
            )
          },
          selectable: 
          if(
            ri!indexType_text = cons!DCC_LABEL_QC_DOCUMENTS,
            false,
            true
          ),
          selectionValue: local!selection,
          selectionSaveInto: {
            local!selection,
            /* This save adds the full rows of data for items selected in the most recent user interaction to local!selectedEmployees. */
            a!save(
              local!selectedRow,
              append(local!selectedRow, fv!selectedRows)
            ),
            /* This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */
            a!save(
              local!selectedRow,
              difference(local!selectedRow, fv!deselectedRows)
            )
          }
        ),

  if(
    ri!indexType_text = cons!DCC_LABEL_QC_DOCUMENTS,
    {},
    a!buttonLayout(
      secondaryButtons: {
        a!buttonWidget(
          label: cons!DCC_BUTTON_SELECT,
          value: cons!DCC_BUTTON_SELECT,
          saveInto: {
            ri!buttonValue_text,
            a!forEach(
              items: local!selectedRow,
              expression:
              if(
                rule!FARM_isNullOrEmpty(ri!selectedSubstance_HTTP),
                a!save(
                  ri!selectedSubstance_HTTP,
                  append(
                    ri!selectedSubstance_HTTP,
                    local!selectedRow[fv!index]
                  )
                ),
                if(
                  tointeger(
                    length(
                      wherecontains(
                        local!selectedRow[fv!index].substanceId,
                        index(
                          ri!selectedSubstance_HTTP,
                          &amp;quot;substanceId&amp;quot;,
                          &amp;quot;&amp;quot;
                        )
                      )
                    )
                  ) = 1,
                  a!save(local!selectedRow[fv!index], null),
                  a!save(
                    ri!selectedSubstance_HTTP,append(
                      ri!selectedSubstance_HTTP,
                      local!selectedRow[fv!index]
                    )
                  )
                )
              )
            ),
            
            a!save(local!selectedRow, null),
            a!save(local!selection, null),
           

          },
          style: &amp;quot;PRIMARY&amp;quot;,
          showWhen: not(
            rule!FARM_isNullOrEmpty(ri!substances_HTTP)
          )
        )
      }
    )
)
       
      }
    )
  }
)&lt;/pre&gt; Here is the code for Grid 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119380?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 10:53:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:791b2dda-6262-43e9-a399-d1c554fc4f38</guid><dc:creator>harshjan</dc:creator><description>&lt;p&gt;Hey, can you share the code snip for the grid 1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is not refreshed when passing from parent interface to child.</title><link>https://community.appian.com/thread/119370?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 06:26:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f917c405-3354-4d6c-b466-5e2fbcd3e23d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Does your expression &amp;quot;DCC_castSubmissionSubstanceData&amp;quot; use local variables? If yes, you need to use a!refreshVariable with refreshAlways set to true.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a&amp;nbsp;tricky behaviour of nested expressions calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>