<?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>Saving Map variable in editable grid</title><link>https://community.appian.com/discussions/f/user-interface/38673/saving-map-variable-in-editable-grid</link><description>Hi, 
 I have a local variable with Map type. I have 2 fields inside a variable (Field label and Field Type) 
 I need to save the variable in a loop by clicking on the Add dynamic link. Please help me out here since the current code is not working.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Saving Map variable in editable grid</title><link>https://community.appian.com/thread/146186?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 01:43:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4bfe15dd-6146-4989-8134-e32e6ec7b451</guid><dc:creator>anthonyp8915</dc:creator><description>&lt;p&gt;The local!manualDynamicField which you are trying to append in the addRowLink(line 201) is not an array. Updating the locallocal!manualDynamicField to have &amp;quot;{}&amp;quot; surrounding the a!map() will be required as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!manualDynamicField:{
    a!map(
        manualdynamicFieldLabel:&amp;quot;&amp;quot;,
        manualdynamicFieldType:&amp;quot;&amp;quot;
    )   
},&lt;/pre&gt;&lt;br /&gt;You will also cannot save data into an index(). e.g. index(fv!item,&amp;quot;manualdynamicFieldLabel&amp;quot;,{}),&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!save(
    index(fv!item,&amp;quot;manualdynamicFieldLabel&amp;quot;,{}),
    concat(&amp;quot;###&amp;quot;, save!value, &amp;quot;###&amp;quot;)
),&lt;/pre&gt;&lt;br /&gt;So you will have to update to reference the dot operator syntax fv!item.manualdynamicFieldLabel1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>