<?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>Save values to a!map() local variable</title><link>https://community.appian.com/discussions/f/user-interface/28502/save-values-to-a-map-local-variable</link><description>Hello, 
 On my UI, I have two text fields that I need to store temporarily until the user confirms their input with a button. 
 I wanted to store these values in a local variable using a!map() function, like so: 
 
 I wanted to initialize the variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Save values to a!map() local variable</title><link>https://community.appian.com/thread/111802?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 12:10:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1e43811-acc1-4c42-a721-41cf22e199ed</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think of it like: index() returns a copy, dot-operator returns a reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save values to a!map() local variable</title><link>https://community.appian.com/thread/111789?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 10:06:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14130ab5-2aaa-4717-862f-7c4dcdc39050</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Property or index function is used to access the value of the variable but when you really need to variable directly, like when saving, then these functions won&amp;#39;t work. You will have to use the Dot operator. And while working with saveInto(s), always the dot operator.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save values to a!map() local variable</title><link>https://community.appian.com/thread/111788?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 10:05:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40a1bc1c-84ef-4605-aab4-61ad187773f9</guid><dc:creator>Witold Wozniak</dc:creator><description>&lt;p&gt;Thank you! The dot notation seems to solve the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save values to a!map() local variable</title><link>https://community.appian.com/thread/111786?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 09:56:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5840ac3f-8d57-419f-aa99-f3b9217bbc3a</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Working fine for me ...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: a!map(
    firstName: &amp;quot;&amp;quot;,
    lastName: &amp;quot;&amp;quot;
  ),
  a!textField(
    label: &amp;quot;First Name&amp;quot;,
    value: property(local!data, &amp;quot;firstName&amp;quot;, null),
    saveInto: a!save(
     local!data.firstName,
      save!value
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1682503311970v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>