<?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>Compare and get the ItemName</title><link>https://community.appian.com/discussions/f/general/30211/compare-and-get-the-itemname</link><description>Hi team, 
 
 Iam building a logic where i have two lists as listed below, now i want to check data[1] i.e, wifi Router Demand value 500 with all (5 items)count values in Items[1] . and same data[2] with items[2] with all 5 count values in items[2] and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120140?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 15:44:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43e1b76d-5953-4d87-b63d-6a06f02c6b66</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="248396" url="~/discussions/f/general/30211/compare-and-get-the-itemname/120111#120111"]What&amp;#39;s the problem?[/quote]
&lt;p&gt;The comment you&amp;#39;re replying to is just a spambot.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1696434213916v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120129?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 13:47:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfc97579-f133-4254-8d26-d4bf626727dc</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;Hey Aryan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i want to show the Spare parts and Demand value respectively in a&amp;nbsp;Editable&amp;nbsp;grid as shown below, i was able to get the Item names but the QTY here refer to Demand value. but here iam getting 1st items from the list 294 demand value for every row&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1696427309116v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120111?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 08:49:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:624ca4de-070e-4c63-a1a0-f18e7521d0b7</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;What&amp;#39;s the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120110?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 08:49:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fcf45378-ed5d-4a24-9b10-6a5ba5975866</guid><dc:creator>acrob8688</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120105?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 06:27:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:926d5852-3ace-4d0d-9e77-fee36e79a6ea</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120104?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 06:25:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44543dd1-7bc4-472e-b417-66cf34e7f87a</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;As fas as I understand, is this what you&amp;#39;re looking for?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
    items: local!data,
    expression: a!localVariables(
      local!demand: fv!item.demand,
      local!item: local!items[fv!index],
      a!map(
        result: reject(
          fn!isnull,
          a!forEach(
            items: local!item,
            expression: if(
              tointeger(local!demand) &amp;gt; tointeger(fv!item.count),
              fv!item,
              null()
            )
          )
        )
      )
    )
  )&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/Screenshot-2023_2D00_10_2D00_04-at-11.54.52-AM.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120103?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 05:57:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd6fddc2-0f2f-4aa3-86f3-a6a8221048ef</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120102?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 05:56:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a9d5e7a-e3d5-40b4-9a2d-baf8578e83e0</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;Yes, in item2 all the items have count greater than 7. So it has to return null right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120101?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 05:55:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7072b241-8f7a-4d4b-be68-27462dfa3047</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;but for second we have check&amp;nbsp;with data[2]&amp;nbsp;&lt;span&gt;&amp;nbsp;[product=Wi-Fi Extender, Demand=7, productid=] with items[2].&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;from data[1] with items[1] , data[2] with items[2]..... like this&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120100?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 05:52:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58d44488-632d-41e6-b98d-67a58ac02d8b</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;so in second example, it will return null right?&lt;br /&gt;As all the count values are greater than demand value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120099?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 05:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4c69c02-acc9-4086-a06a-aaecad75cb87</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;Okay. i will explain the above exmaple.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have data list and Items list. data list contains a product name and Demand count. item list contains the set of spareparts that are required manufacture the product. example data[1] is&amp;nbsp;&lt;span&gt;[product=Wi-Fi Router, Demand=500, productid=], for this product we have spare parts items[1] is&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{{Sparepart: &amp;quot;Wi-Fi Module&amp;quot;, count: 100, productid: 1},&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{Sparepart: &amp;quot;Antenna&amp;quot;, count: 100, productid: 1},&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{Sparepart: &amp;quot;Power Supply Unit&amp;quot;, count: 100, productid: 1},&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{Sparepart: &amp;quot;Ethernet Port&amp;quot;, count: 100, productid: 1},&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{Sparepart: &amp;quot;CPU Chip&amp;quot;, count: 100, productid: 1}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;},&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now i want to know in data list i have a variable called Demand it should compare the the all the count variable items[1] i.e the spare part list (5 list) and return the Fv!item that are less than Demand Value&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare and get the ItemName</title><link>https://community.appian.com/thread/120097?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 04:52:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca0147c2-c824-4349-af69-52e45aefc862</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;Can you please explain it more&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>