<?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>Pass the values</title><link>https://community.appian.com/discussions/f/user-interface/18701/pass-the-values</link><description>HI team , I have a main Parent Interface having multiple Interface in &amp;quot;CHOOSE&amp;quot; function --&amp;gt; (eg : Int A , Int B , Int C) 
 Int C --&amp;gt; shows error message based on Int B ( Int C knows it by api call) . 
 1.When I load the main parent Interface . 2. Then</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pass the values</title><link>https://community.appian.com/thread/73658?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 18:44:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:231102ef-b5ff-4e39-908b-c346f0ddc01c</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You&amp;#39;ll also need to pass the same variable into interface B so that you save whether the validation has been triggered in B (and view the result in interface C).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pass the values</title><link>https://community.appian.com/thread/73646?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 13:39:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e9ba007-e5a5-41f1-bd28-b7bf5eaa661c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Your issue is that the rule input for displayError you&amp;#39;re passing in from the parent into Interface C is not a variable (you&amp;#39;re passing &amp;quot;displayError: false()&amp;quot;, which is fine if you need ri!displayError to just hold a literal value in the sub interface, but will not work if you try to save a value into it).&amp;nbsp; You should be declaring a local variable at the parent interface and passing that into interface C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pass the values</title><link>https://community.appian.com/thread/73641?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 10:42:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62ef6773-29fc-44bc-901b-863d6a03918b</guid><dc:creator>kasiss0001</dc:creator><description>&lt;p&gt;Hi Peter ,&lt;br /&gt;&amp;nbsp;Parent Interface:&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!validationVariable: false,&lt;br /&gt; local!chooseVariable: 1&lt;br /&gt; choose(&lt;br /&gt; local!chooseVariable&lt;br /&gt; rule!InterfaceA(),&lt;br /&gt; rule!InterfaceB(),&lt;br /&gt; rule!interfaceC(displayerror :&amp;nbsp;false())&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Interface C&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="less"&gt;load(
.......,
{
   a!buttonLayout(
   a!buttonwidget(
   label:&amp;quot;save&amp;quot;,
   saveInto : if(api call=certain value,
   { 
     //neccessary changes then
     a!save(ri!displayerror,false())
   },
   {
     a!save(ri!displayerror,true())
   }
   ))),
   
   a!richTextDisplayField(
          label: &amp;quot;&amp;quot;,
          value: a!richTextItem(
            text: &amp;quot;Please add necessary details in Interface B&amp;quot;,
            color: &amp;quot;NEGATIVE&amp;quot;
          ),
          showWhen: (ri!displayerror)
})&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;getting the error :&amp;nbsp;&lt;span&gt; The save target must be a load() variable, process variable, or node input (or a rule input passed one of those three), but instead was: false&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pass the values</title><link>https://community.appian.com/thread/73632?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 21:34:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41a00e15-520c-4ad2-8fff-f16053127f05</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;It&amp;#39;s a little hard to tell without the full SAIL code. Do you have any shared variables between your interfaces? The easiest way to me would be to save a value into a local variable in the parent interface from interface B. Then, Interface C could check the value of that local variable to determine if B is complete or not. Here&amp;#39;s an example of the top level interface:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!validationVariable: false,
  local!chooseVariable: 1
  choose(
    local!chooseVariable
    rule!InterfaceA(),
    rule!InterfaceB(local!validationVariable),
    rule!interfaceC(local!validationVariable)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, in interface B you would need to save into the validationVariable when the appropriate changes in B have occurred. When you go to interface C, it will include the variable you have used to make the changes, so you can easily use an if() function to show the validation correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>