<?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>Transfer dictionary between interfaces</title><link>https://community.appian.com/discussions/f/user-interface/19029/transfer-dictionary-between-interfaces</link><description>Hi All, 
 I have a requirement wherein I need to transfer one dictionary from child interface to parent interface on button click (Please note button is configured inside child interface) 
 Apart from saving the data into a rule input of type ANY TYPE</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Transfer dictionary between interfaces</title><link>https://community.appian.com/thread/74676?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 16:43:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de495367-bf53-43fd-8b2e-733ee0c51af3</guid><dc:creator>alex.ladue</dc:creator><description>&lt;p&gt;Correct you cannot append a dictionary to a dictionary. You need ri!data to be a List of Dictionary. You should be able to replace your if statement with just:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!save(ri!data,append(ri!data,local!data)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will create a list of dictionary on the first save and then append new values to that list on subsequent saves.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Transfer dictionary between interfaces</title><link>https://community.appian.com/thread/74674?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 16:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1842146e-303d-46a6-991a-c47d402d7846</guid><dc:creator>best</dc:creator><description>&lt;p&gt;We cannot append to a &amp;quot;Dictionary&amp;quot;.&lt;/p&gt;
&lt;p&gt;But we can append to a type &amp;quot;List Of Dictionary&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Transfer dictionary between interfaces</title><link>https://community.appian.com/thread/74670?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 15:33:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad43f066-0563-4bb5-9e1a-e99e97deb07c</guid><dc:creator>arunramanathtm</dc:creator><description>&lt;p&gt;Okay thanks !&lt;br /&gt;but any type looks insufficient to my case.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here is my scenario:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp;a button labelled &amp;#39;Add New Data&amp;#39; in parent interface. Whenever i hit this button, it displays my child interface. On clicking &amp;#39;Done&amp;#39; button in the child interface, brings the data to parent interface.&lt;/p&gt;
&lt;p&gt;Now when I&amp;nbsp;click&amp;nbsp;&amp;#39;Add new data&amp;#39; button again and&amp;nbsp;it calls the&amp;nbsp;child interface for the second time (looped) , now when i hit &amp;#39;Done&amp;#39;, i need to append both&amp;nbsp;dictionaries.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For this i&amp;#39;ve written below code in &amp;#39;Done&amp;#39; button (child interface).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!buttonwidget(&lt;/p&gt;
&lt;p&gt;label:&amp;quot;Done&amp;quot;,&lt;/p&gt;
&lt;p&gt;saveInto:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;if(rule!apn_isempty(ri!data),&lt;/p&gt;
&lt;p&gt;a!save( ri!data, local!data ),&lt;/p&gt;
&lt;p&gt;a!save(ri!data,append(ri!data,local!data)&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Appending two ANY TYPE value fails . Could you please suggest some other way to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Transfer dictionary between interfaces</title><link>https://community.appian.com/thread/74663?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 15:17:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8edd924c-9400-4674-9d88-a4df6b481dcd</guid><dc:creator>alex.ladue</dc:creator><description>&lt;p&gt;The only way to pass a dictionary in a rule input is to use the type &amp;quot;Any Type&amp;quot;. You could also make a CDT for this case if that made sense for your use case. Is there a reason why using Any Type is not sufficient for your use case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>