<?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>How to pass value from one interface to another interface ?</title><link>https://community.appian.com/discussions/f/new-to-appian/19933/how-to-pass-value-from-one-interface-to-another-interface</link><description>Hi, 
 I have imported interface-1 in interface-2, Interface-1 contains a form with one paragraph box and a submit button (already working, I can put some text in there and hit submit it gets written in the DB), I am trying to pass text from Interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78055?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 16:28:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c849034-b130-4bde-86c6-ceb675296123</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you elaborate on what isn&amp;#39;t working? Is it throwing an error, or is it not saving the data, etc? Also, FWIW I don&amp;#39;t believe your button is configured correctly in interface 2 - you have an append() function, but you have only provided one parameter to it. The append requires both the array you&amp;#39;d like to append to and the value to append.&lt;/p&gt;
&lt;p&gt;I would also recommend against using a submit button in a child interface. Usually it&amp;#39;s good practice to have your buttons at the top level interface, since then you can set up saving behavior from any part of the interface (or child interfaces). Plus, it will make the form look better to have the buttons at the top level.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78054?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:41:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c956194-5547-4d46-bbfb-c50080df30e3</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I tried it with rule input as well, but no luck.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rule!notes(
      notes: ri!mNotes,
      cancel: ri!cancel,
      readOnly: ri!readOnly
    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78053?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:35:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2dea123-c308-47b6-abfb-524c361fe77c</guid><dc:creator>Pedro Sim&amp;#245;es</dc:creator><description>&lt;p&gt;&lt;span&gt;Shamim,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With that approach, you&amp;#39;re creating an instance of the Notes CDT and not actually creating a variable in your interface to hold that data for you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You&amp;#39;ll need to associate your &lt;em&gt;notes&lt;/em&gt; parameter to an actual variable: a rule input or a local variable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78052?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:28:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce4308cf-17f8-4068-9bee-b071d76bdad6</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I&amp;nbsp;am trying this way :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rule!notes(
      notes: &amp;#39;type!{urn:com:appian:types}Notes&amp;#39;(
        date: now(),
        createdBy: loggedInUser(),
        notesMessage: &amp;quot;Sample Input&amp;quot;
      ),
      cancel: ri!cancel,
      readOnly: ri!readOnly
    )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But it doesn&amp;#39;t seem to be working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, when I move out of paragpaph and press on submit button, text&amp;nbsp;in the paragraph disapears.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78051?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:16:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22d1943e-45a4-410e-bae7-8cfd5bfca709</guid><dc:creator>Pedro Sim&amp;#245;es</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Shamim,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As &lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt; mentioned before, you will need to have the same rule inputs of your child interface in your parent interface in order to be able to do what you want. Once you create those rule inputs in your parent interface, you will need to change the way you call the child interface to use those new variables.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In Interface 1, you will need to change this&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
rule!notes(
            null,null,null
          )&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to something like this&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
rule!notes(
            ri!notes,ri!readOnly,...
          )&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78048?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:09:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f6080a9-a4e0-4237-9dda-537a8bcd4234</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;Here is Interface-2 SAIL :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!columnsLayout(
  columns: {
    a!columnLayout(
      contents: {
        a!paragraphField(
          label: &amp;quot;&amp;quot;,
          labelPosition: if(ri!readOnly, &amp;quot;ADJACENT&amp;quot;, &amp;quot;ABOVE&amp;quot;),
          value: ri!notes.notesMessage,
          saveInto: ri!notes.notesMessage,
          height: &amp;quot;MEDIUM&amp;quot;,
          validations: if(
            len(ri!notes.notesMessage) &amp;gt; 2000,
            &amp;quot;Value may not be longer than 2000 characters. You have entered &amp;quot; &amp;amp; len(ri!notes.notesMessage) &amp;amp; &amp;quot; characters.&amp;quot;,
            null
          )
        ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: &amp;quot;Submit&amp;quot;,
              icon: &amp;quot;check&amp;quot;,
              saveInto: {
                a!save(
                  target: ri!notes,
                  value: append(
                    &amp;#39;type!{urn:com:appian:types}Notes&amp;#39;(
                      date: now(),
                      createdBy: loggedInUser(),
                      notesMessageBody: ri!notes.notesMessage
                    )
                  )
                )
              },
              submit: true
            )
          },
          align: &amp;quot;END&amp;quot;
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Interface-1 SAIL:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!columnsLayout(
    columns: {
      a!columnLayout(
        contents: {
          a!textField(
            label: &amp;quot;INTERFACE - 1&amp;quot;,
            labelPosition: &amp;quot;ABOVE&amp;quot;,
            saveInto: {},
            refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
            required: false,
            readOnly: true,
            disabled: false,
            validations: {}
          ),
          a!paragraphField(
            label: &amp;quot;Interface-1 Content Here...&amp;quot;,
            labelPosition: &amp;quot;ABOVE&amp;quot;,
            saveInto: {},
            refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
            height: &amp;quot;MEDIUM&amp;quot;,
            readOnly: true,
            disabled: true,
            validations: {}
          )
        }
      ),
      a!columnLayout(
        contents: {
          a!textField(
            label: &amp;quot;INTERFACE - 2&amp;quot;,
            labelPosition: &amp;quot;ABOVE&amp;quot;,
            saveInto: {},
            refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
            readOnly: true,
            disabled: false,
            validations: {}
          ),
          rule!notes(
            null,null,null
          )
        }
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1606144176148v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78042?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 14:10:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db4f1350-edb0-4aa4-9b98-8276d19ab673</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You will likely need to map the rule inputs together from the child interface to the parent. For example, suppose you have a rule input for ri!case on the child interface. You will need to create a second rule input to match that on the parent interface and map them together like this:&lt;/p&gt;
&lt;p&gt;rule!ChildInterface(case: ri!case)&lt;/p&gt;
&lt;p&gt;Then, any changes you make in the child interface will also be saved to the parent.&lt;/p&gt;
&lt;p&gt;If this still does not address your question, can you post samples of the two interfaces you have? That can help us understand your scenario and provide the best solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/78040?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 12:29:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0758dc0-603d-4536-838b-83e0e9c3244a</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I am sorry but my ask is, I have a form on Interface-1 and it has been embedded in Interface-2, I can see the Interface-1 form&amp;nbsp;on Interface-2. Now I am trying to submit data from Interface-2 in embedded form of Interface-1 and expecting when I press submit the data should be written in DB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass value from one interface to another interface ?</title><link>https://community.appian.com/thread/77882?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 09:00:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:887adfd1-c7a9-4924-b09e-aec1b7f74889</guid><dc:creator>Timo</dc:creator><description>&lt;p&gt;You can save the same value in a rule input, so that one gets updated on the other interface.&lt;/p&gt;
&lt;p&gt;Or create a refreshVariable which queries the DB after summitting to fetch this new value.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>