<?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/38672/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/146185?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 19:01:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da2d2959-c1e5-4186-8d16-f405675e05d8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can&amp;#39;t save into index() like this.&amp;nbsp; The index() function returns an evaluated value equating to the index or property within the target value (if any), but it does not give a save-able pointer to the actual value itself, like you&amp;#39;d get if you saved into the target &amp;quot;fv!item.manualdynamicfieldlabel&amp;quot; here.&amp;nbsp; The way you have this should, i expect, result in a pretty severe error message.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1741719647184v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving Map variable in editable grid</title><link>https://community.appian.com/thread/146179?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 18:10:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0497cf85-c703-4439-932d-8d2f62f79f4d</guid><dc:creator>osanchea</dc:creator><description>&lt;p&gt;Hi, try adding &amp;quot;{}&amp;quot; to the variable where you have your map defined. This way, it will no longer show an error when adding a new item to the initial list. Refer the code below:&lt;br /&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>