<?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>Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/discussions/f/data/19730/is-it-possible-to-delegate-action-from-sub-interface-to-a-parent-interface</link><description>Hi, 
 I have an interface A (form), that contains a sub interface B (grid). 
 When the user click on a checkbox row of the Grid in B, I can make some actions using the &amp;quot;selectionSaveInto&amp;quot; (ex: a!save(local!a, true) ) 
 Is there any way to delegate (or</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77149?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 09:10:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2cff71f6-f4ca-44b9-aad8-6f118e3a6d65</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;Yes exactly, I&amp;#39;ve tested it yesterday and this works well for a single value.&lt;/p&gt;
&lt;p&gt;but I was not sure to use it correctly.&lt;/p&gt;
&lt;p&gt;Thank you Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77148?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 09:04:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08fe51dd-308f-4ae6-8e20-d64bfa868317</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then passing {a!save(target: local!formAVar: value: null)} to your saveActions will store null to the local variable in form A.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77146?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:33:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3968a6d-58e2-430e-953f-ff5114ae07e1</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;I need to trigger an event when the user select a grid row (or select a inline&amp;nbsp;checkbox).&lt;br /&gt;I do not need the Grid context, but just to call some &amp;quot;save actions&amp;quot; from Form A (not from the interface B).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I could do these actions in Grid B, but I preferer to&amp;nbsp;call them from Form A, because the variables I&amp;#39;m using belongs to Form A.&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;When I&amp;nbsp;select a grid row in sub interface&amp;nbsp;B, I need to reinitialize some objects in Form A.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry if I am not very clear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77144?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:01:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e342492-4d8f-4052-910a-db84c1397944</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In a saveInto, there is context. This is defined by the component. In a TextField, this is the entered text. In your case, this is the grid selection. To store something else, you define the list of a!save like {a!save(target: local!someVar, value: &amp;quot;someValue&amp;quot;}.&lt;/p&gt;
&lt;p&gt;Does this help? Please&amp;nbsp;elaborate about what your goal is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77143?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 07:53:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32427902-2eab-47da-b7ae-1519ece8b5e3</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;but how do you do get back these values in form A?&lt;br /&gt;Do you just get an array of value proceeding like this?&lt;/p&gt;
&lt;p&gt;In form A :&lt;/p&gt;
&lt;p&gt;rule!My_SubGrid_B(&lt;br /&gt;&amp;nbsp; &amp;nbsp; saveActions: {local!var1, local!var2}&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In sub interface B (grid) :&lt;/p&gt;
&lt;p&gt;&lt;span&gt;selectionSaveInto&amp;nbsp;&lt;/span&gt;{&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;a!save(&lt;/span&gt;&lt;span&gt;local!&lt;/span&gt;&lt;span&gt;test1&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;value1&amp;quot;),&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;a!save(&lt;/span&gt;&lt;span&gt;local!&lt;/span&gt;&lt;span&gt;test2&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;value2&amp;quot;),&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;ri!saveActions&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77133?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 19:45:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d107504-afb8-4f56-8e8f-e887b4217778</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Your selectionSaveInto should look like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
    a!save(
        target: local!somethingLocal,
        value: &amp;quot;someValue&amp;quot;
    ),
    ri!saveActions
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you can pass a list of a!save() to ri!saveAction&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77132?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 18:25:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fa5f442-22c5-4044-b2df-5f3e22d9013c</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;Stefan, it works with a single value, but I may forgot something with an array.&lt;br /&gt;With 2 rule inputs passed in the Save rule&amp;nbsp;input (saveActions), Appian takes only the first value.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In grid B, I set the 2 values like this :&lt;/p&gt;
&lt;p&gt;selectionsaveInto: {&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;a!save(ri!saveActions, {12, 15}),&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Am I missing something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77120?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 16:11:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1abd4a4-e405-4639-adf7-2679de4249b0</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;That is great, I did not know there&amp;nbsp;were a &amp;quot;Save&amp;quot; type for Rule input.&lt;/p&gt;
&lt;p&gt;Thanks a lot Stefan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to delegate action from Sub Interface to a parent interface?</title><link>https://community.appian.com/thread/77119?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 16:08:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0d94187-eac4-4d63-a624-c14941c780dd</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sure. Add a rule input to interface B of type save and make it an array. Then add this to the saveInto. Then you can pass any saving action from interface A into interface B using the new rule input. Give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>