<?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>Need to save the dropdown values data in local!variable by creating map</title><link>https://community.appian.com/discussions/f/general/37379/need-to-save-the-dropdown-values-data-in-local-variable-by-creating-map</link><description>When you click the add button, the CardLayout component is duplicated along with its fields. Consequently, the dropdowns in each card layout are showing the same selected value as the dropdown in the first card layout. How should I handle saving the data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to save the dropdown values data in local!variable by creating map</title><link>https://community.appian.com/thread/139982?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 04:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf131aa1-dbb4-47e2-9aa6-d5902d6b1e40</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/harmanjots514"&gt;Klaus34&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As Venkat suggested I recommend the use of editable grid for such use case. Using cards for such purpose is not a good UX if the number exceeds more than 2-3. Take a look at the 2nd link Venkat provided for editable grid. In case your use-case requires card layout the 1st link would help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to save the dropdown values data in local!variable by creating map</title><link>https://community.appian.com/thread/139962?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 14:20:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:674f5613-124e-43ec-a281-806847edccc5</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Isn&amp;#39;t&amp;nbsp; the editable grid is better option for your case??. It makes your work easy. If you want to go with your design you need to index your variable based on&amp;nbsp;&amp;nbsp;&lt;strong&gt;current index&lt;/strong&gt; . which will give you headache. Something like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Value:index(local!variable.field, fv!item,null),
Saveinto:a!save(local!Variable.field[fv!index],save!value)
--or--
use update function&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There are other options for your interface, Please go through the below links.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.2/recipe-add-and-populate-sections-dynamically.html"&gt;https://docs.appian.com/suite/help/24.2/recipe-add-and-populate-sections-dynamically.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.2/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html"&gt;https://docs.appian.com/suite/help/24.2/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>