<?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 operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/discussions/f/best-practices/29807/how-to-operate-the-localvariable-defined-in-the-sub-interface-in-the-parent-interface</link><description>Hi team, 
 There are two interfaces, namely interfaceA and interfaceB, and interfaceB is a sub-interface of interfaceA. 
 In the sub interfaceB, two localVariables are defined, namely b1 and b2. 
 In the parent interfaceA, there is a button. I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/thread/138124?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 05:28:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a0a106d-75fa-4ad9-a6ba-5eb538aeba17</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;We cannot handle it through local variables. The name itself indicates that they are local, so we cannot access them globally or outside of that interface. If we need to pass or handle values from Interface A to Interface B, we need to create Rule Inputs. These rule Inputs will act as global variables to manage these situations. Or We need to pass these local variable values into the rule inputs of the B interface. By the end of this, we have to handle everything through rule inputs only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/thread/118448?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 15:52:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fea8e13c-6065-4a8e-963f-d0d0ddecc5e6</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Interface A (parent)&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Interface B (child).&lt;/p&gt;
&lt;p&gt;#1. To access local variables&amp;nbsp;defined in A into B. Pass those local variables as a rule input to B.&lt;/p&gt;
&lt;p&gt;#2. To access l&lt;span&gt;ocal variables&amp;nbsp;&lt;/span&gt;&lt;span&gt;defined in&lt;/span&gt;&lt;span&gt;&amp;nbsp;B&amp;nbsp;back to&amp;nbsp;A.&amp;nbsp;Create rule input in B and save the B&amp;#39;s local variables into rule input, so that can be accessed in A.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please note, rule inputs are bi-directional it can be used to&amp;nbsp;pass-on&amp;nbsp;the data from parent to child as well as child to parent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/thread/118256?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 13:35:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:854866e9-2563-4027-8b14-658e17b67b42</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Like I describe in my blog post, you do not have access to local variables in sub-interfaces.&lt;/p&gt;
&lt;p&gt;Variables have to be created on top and can be passed down through&amp;nbsp;rule inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/thread/118254?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 13:27:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c68fac57-10b4-4e4a-a615-a8dd75d5d029</guid><dc:creator>Mason</dc:creator><description>&lt;p&gt;For example, save the value of b2 to b1, can we do it in interfaceA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to operate the localVariable defined in the sub interface in the parent interface?</title><link>https://community.appian.com/thread/118252?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 13:24:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:224181d1-95ee-468a-80b6-ced8e7e0b8c6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not sure what you mean with &amp;quot;operating a variable&amp;quot;.&lt;/p&gt;
&lt;p&gt;Read my blog post to understand data flow in interfaces:&amp;nbsp;&lt;a href="https://appian.rocks/2022/07/05/data-in-interfaces/"&gt;appian.rocks/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>