<?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 update ri! from a sub-interface?</title><link>https://community.appian.com/discussions/f/user-interface/21022/how-to-update-ri-from-a-sub-interface</link><description>I have a parent interface that is calling a sub-interface. I want to use a!save() is this possible?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to update ri! from a sub-interface?</title><link>https://community.appian.com/thread/81944?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 17:00:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd3d1017-166a-4318-8d09-b98c1e7609f7</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;It&amp;#39;s worth noting the conceptually any ri! parameter is simply a &amp;quot;pointer&amp;#39; to a variable. That variable needs to exist in the parent interface object (or, if there is a stack of calls, at the very top-most interface) for the value to be changed from a sub-interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update ri! from a sub-interface?</title><link>https://community.appian.com/thread/81935?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 15:16:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73501d04-0303-4a9f-b32a-d619859f3587</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Yes, if you pass the ri! as a parameter of the rule that makes the sub-interface, then when you update the value inside that code, it will proceed to update it outside that&amp;nbsp;code as well.&amp;nbsp; In your sub-interface, it can have a completely different name, but that&amp;#39;s not recommended.&amp;nbsp; You have to a!save() into the name the parameter has in the sub-interface.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s actually VERY good practice to explicitly label all the ways the data flows down through the nested code then back up through the nested code.&amp;nbsp; Developers can track where a starting value comes from, and where a changed value ultimately goes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update ri! from a sub-interface?</title><link>https://community.appian.com/thread/81900?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 11:00:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7b79dae-9fa7-4351-af0f-3becf92f063f</guid><dc:creator>natashan0002</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will have to send ri to subinterface first.&lt;/p&gt;
&lt;p&gt;Then use save!() in the subinterface to update it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will return backthe changed ri.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>