<?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>Map() function</title><link>https://community.appian.com/discussions/f/user-interface/26018/map-function</link><description>What is map function what it does and how we use it. 
 I see in some interfaces it has been used in ruleinputs as a datatype.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101889?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 14:28:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b8ec40e-a6f2-4c2c-8f69-d60f153857e4</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In addition to being able to pass it to a process as a PV (which does open up some nice new doors, as it were), the biggest strength of a!map() over a traditional dictionary, is that the data items within the map will keep their data type very well.&amp;nbsp; In a dictionary it was often hard to use certain primitive operators (like &amp;quot;local!dict.number = 1&amp;quot;) because data elements in a dictionary would resolve as a sort of &amp;quot;any type&amp;quot; data type, which did not play well with direct comparisons like the above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101841?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 06:46:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de4b69cc-a858-4335-9319-dd0504d3f0a0</guid><dc:creator>Mh q</dc:creator><description>&lt;p&gt;Thank you all&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101827?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 01:48:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9733329-9846-4a1a-955a-9d0b51e65fe5</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Basically the same thing as a dictionary, but with many other uses.&amp;nbsp; It&amp;#39;s an ad hoc CDT-like thing that you define by filling it with whatever.&amp;nbsp; The cool thing is, unlike dictionary, you can pass it to a process model as a process variable and do lots of other things with it.&amp;nbsp; It&amp;#39;s really cool for determining the structure the data will go into at runtime, but it does have some limits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101824?ContentTypeID=1</link><pubDate>Sun, 25 Sep 2022 17:59:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba9182e0-02e8-451b-b907-ccd511d75819</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;The map is used to make your data as structured Data if CDT is not there for the same. It is like a key-value pair.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101817?ContentTypeID=1</link><pubDate>Sun, 25 Sep 2022 13:33:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc740cf6-341d-41bb-a3ba-0847a6b150aa</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;What are you not sure about? If you want to know how it is used check the below code.&lt;pre class="ui-code" data-mode="text"&gt;=a!localVariables(
  local!items: {
    a!map(item: &amp;quot;Item 1&amp;quot;, qty: 1, unitPrice: 10),
    a!map(item: &amp;quot;Item 2&amp;quot;, qty: 2, unitPrice: 20)
  },
  a!gridLayout(
    label: &amp;quot;Products&amp;quot;,
    instructions: &amp;quot;Update the item name, quantity, or unit price.&amp;quot;,
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Item&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Qty&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Unit Price&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Total&amp;quot;, align: &amp;quot;RIGHT&amp;quot;)
    },
    rows: {
      a!gridRowLayout(
        contents: {
          a!textField(
            value: local!items[1].item,
            saveInto: local!items[1].item
          ),
          a!integerField(
            value: local!items[1].qty,
            saveInto: local!items[1].qty
          ),
          a!floatingPointField(
            value: local!items[1].unitPrice,
            saveInto: local!items[1].unitPrice
          ),
          a!textField(
            value: dollar(tointeger(local!items[1].qty) * todecimal(local!items[1].unitPrice)),
            readOnly: true,
            align: &amp;quot;RIGHT&amp;quot;
          )
        }
      ),
      a!gridRowLayout(
        contents: {
          a!textField(
            value: local!items[2].item,
            saveInto: local!items[2].item
          ),
          a!integerField(
            value: local!items[2].qty,
            saveInto: local!items[2].qty
          ),
          a!floatingPointField(
            value: local!items[2].unitPrice,
            saveInto: local!items[2].unitPrice
          ),
          a!textField(
            value: dollar(tointeger(local!items[2].qty) * todecimal(local!items[2].unitPrice)),
            readOnly: true,
            align: &amp;quot;RIGHT&amp;quot;
          )
        }
      )
    },
    rowHeader: 1
  )
)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101816?ContentTypeID=1</link><pubDate>Sun, 25 Sep 2022 13:18:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00585da2-ca85-49ee-8395-047bd2aef227</guid><dc:creator>Mh q</dc:creator><description>&lt;p&gt;Please elaborate I have seen the doc but still not sure can you please give an example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Map() function</title><link>https://community.appian.com/thread/101815?ContentTypeID=1</link><pubDate>Sun, 25 Sep 2022 13:12:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80c08c34-29f7-498b-aa24-097c076b88e1</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Hi maps are used to store data values as a key-value concept for more please check this out&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.3/fnc_system_map.html"&gt;https://docs.appian.com/suite/help/22.3/fnc_system_map.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>