<?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>without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/discussions/f/user-interface/21840/without-changing-the-rule-input-values-how-to-update-rule-input-by-using-local-variables</link><description>Hi, 
 i am using multidrop down field , i want to update my new values into local variable first then i want to update into my rule input without effecting the rule input values when it is in editable condition and i have tried using the local variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85581?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:39:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abc1c9a3-d652-4133-ad7c-61c303e7c48b</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;thank you&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/gayathris0003"&gt;gayathris0003&lt;/a&gt;, can you please let me know what do you mean by load, it is assigning the rule inputs to the local variables, if it is that i am facing the same error again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85578?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:14:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9691c2cb-3f92-488d-9619-fa897d36e337</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;In my example, In local variable first load the old pets values&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85577?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:09:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46601184-f515-496a-99c4-3ffdc60616e9</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1631084604580v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;these are my old rule inputs when i update it&amp;nbsp; the rule inputs are changing in the below format but i want (old ruleputs + new inputs) in my rule input&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1631084968507v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85576?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 06:57:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd6895a4-c27f-4a53-a006-84bbc31ba469</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;thank u&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/gayathris0003"&gt;gayathris0003&lt;/a&gt;, i will try this&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85575?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 06:51:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f42a2669-3153-45c4-9335-1b107cc0306a</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
local!pets: {
{ a!map(petsNm: &amp;quot;dog&amp;quot;, petsId: 1) },
{ a!map(petsNm: &amp;quot;Cat&amp;quot;, petsId: 2) }
},
local!mappingId: 1,


local!petsSelected_ids: index(ri!pets, &amp;quot;petsIdFk&amp;quot;, null()), /* local variable which holds old pet ids and new pet ids selected*/

a!multipleDropdownField(
/*disabled: not(ri!isEditable),*/
label: &amp;quot;Pets&amp;quot;,
placeholder: &amp;quot;select a value&amp;quot;,
choiceLabels: index(local!pets, &amp;quot;petsNm&amp;quot;, null()),
choiceValues: index(local!pets, &amp;quot;petsId&amp;quot;, null()),
value: local!petsSelected_ids,
saveInto: {
local!petsSelected_ids,
a!save(ri!pets,a!forEach(
items: local!petsSelected_ids,
expression: a!map(
petsIdFk: fv!item,
mappingKey: local!mappingId
)
)
)
}
)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: without changing the rule input values how to update  rule input by using local variables</title><link>https://community.appian.com/thread/85572?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 06:32:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:783ad1fe-f33e-44fb-952b-55ea7eb8d18d</guid><dc:creator>nitesht9652</dc:creator><description>&lt;p&gt;Hi, Rather than checking if editable or not, can you try saving the value always in local and finally when user is done with UI update, in the button click save into you can store the local variables value to rule input variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>