<?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>Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn&amp;#39;t?</title><link>https://community.appian.com/discussions/f/general/38254/changing-a-rule-input-variable-in-a-child-interface-changes-it-in-the-parent-but-sail-in-local-variable-doesn-t</link><description>Just a question regarding the exact location and order that variable data is saved in. I have noticed that saving a variable in a child interface that was passed into it as a rule input also changes the related local variable in the parent interface,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144062?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 19:46:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6b732b2-a768-4aaf-96e3-a22924c06fb0</guid><dc:creator>francoh7128</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144037?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 20:47:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5927645f-6a81-4565-b5b7-09b69d460ac0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Some references:&lt;/p&gt;
&lt;p&gt;&lt;a id="" 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;&lt;a id="" href="https://docs.appian.com/suite/help/24.4/SAIL_Performance.html"&gt;https://docs.appian.com/suite/help/24.4/SAIL_Performance.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144033?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 20:35:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c79bab1-7f7b-4609-bb8d-1b399a6463ff</guid><dc:creator>francoh7128</dc:creator><description>&lt;p&gt;&amp;quot;Does,&amp;quot;&amp;nbsp;as in changing a&amp;nbsp;rule&amp;nbsp;input variable&amp;nbsp;in the child successfully changes it in its parent.&lt;br /&gt;&lt;br /&gt;But yeah, that does makes sense.&amp;nbsp; I was trying to tinker with the refresh variable args, but then I realized that using local variables to do it wouldn&amp;#39;t be the right way to do it even if it did save a bit of space and a few lines of code.&amp;nbsp; It made for an interesting learning experience though.&amp;nbsp; Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144030?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 20:18:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5c51267-d8a1-4e08-98d5-eb73722ae514</guid><dc:creator>francoh7128</dc:creator><description>&lt;p&gt;Oh, I&amp;#39;m just trying to figure out more about the variable storage process (what order variables are stored and initialized etc).&amp;nbsp; I couldn&amp;#39;t find that info in the documentation, but it exists for other functionalities.&amp;nbsp; But yeah, I realize that storing a UI component in a rule expression is best, but I wasn&amp;#39;t sure why storing the UI component into a local wouldn&amp;#39;t work too.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll&amp;nbsp;use a!update() for the other part though.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144028?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 19:48:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f30acfd8-117f-45aa-9071-f25a8cc72b1c</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="288340" url="~/discussions/f/general/38254/changing-a-rule-input-variable-in-a-child-interface-changes-it-in-the-parent-but-sail-in-local-variable-doesn-t"]using a expression rule does&amp;nbsp;permanently [/quote]
&lt;p&gt;&amp;quot;does&amp;quot; or &amp;quot;doesn&amp;#39;t&amp;quot;?&amp;nbsp; It sounds like you meant to say &amp;quot;doesn&amp;#39;t&amp;quot; but it&amp;#39;s a little ambiguous.&lt;/p&gt;
&lt;p&gt;If you declare interface components in a local variable, strange things can and will happen sometimes.&amp;nbsp; You CAN (usually) get it to work, however, but I believe the code in the local variable must be manually declared using a Refresh Variable set to &amp;quot;REFRESH ALWAYS&amp;quot; behavior.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;local!sailInterfaceDropdown: a!refreshVariable(
  value: a!sideBySideLayout(
    item: rule!nestedDropdownfield(
      choiceLabels: local!listOfYesNo
      choiceValues: local!listOfYesNo
      value: index(
        local!madeFromCDT,
        &amp;quot;arbitraryField&amp;quot;
        saveInto: a!save(
          local!madeFromCDT,
          updatedictionary(
            dictionary: local!madeFromCDT,
            fieldsAndValues: {arbitraryField: save!value}
          )
        )
      )
    )
  ),
  refreshAlways: true()
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Additionally, since this manually references the earlier local variable, it&amp;#39;s not clear what would happen if, for instance, you then try to reference this local variable multiple times within an interface.&amp;nbsp; It might just break, or do something even more unexpected.&amp;nbsp; Generally I avoid doing this except for when I have static UI elements I want to use several times on a form without having to manually declare them everywhere, but even then they only reference generic external variables (like simply saving a single value into a single rule input, like a submit button or similar).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing a rule input variable in a child interface changes it in the parent but SAIL in local variable doesn't?</title><link>https://community.appian.com/thread/144027?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 18:40:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b4e3112-e8ca-4daa-9f39-6644a610d05c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, but I do not understand what you are doing here. Please help me.&lt;/p&gt;
&lt;p&gt;Why do you store a UI component into a local?&lt;/p&gt;
&lt;p&gt;Instead of updatedictionary(), I suggest to use a!update().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>