<?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>How to save the values shown in my editable grid</title><link>https://community.appian.com/discussions/f/user-interface/29967/how-to-save-the-values-shown-in-my-editable-grid</link><description>Hello! I&amp;#180;m having some trouble trying to save my values in an editable grid. 
 The first 6 columns are read-only (data from a local variable, query of a record) and the 7 one is an editable column (user introduces quantity) 
 
 My values are not saving</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119329?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 14:14:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb995986-6726-4d62-a410-7a419e53ecff</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="251169" url="~/discussions/f/user-interface/29967/how-to-save-the-values-shown-in-my-editable-grid/119034#119034"]my default data is from a record (CPF_Lineas_Pedido) and I want to save it in another record (CPF_Lineas_Recepciones)[/quote]
&lt;p&gt;Sorry for the late reply - community just decided to ... &lt;em&gt;&lt;strong&gt;never notify me at all&lt;/strong&gt;&lt;/em&gt; about your reply (but then again, that seems to be the standard functionality lately).&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t quite realize you&amp;#39;re trying to typecast directly between two different record types.&amp;nbsp; For CDT or Dictionary data, typecasting just works as long as the field names exactly match.&amp;nbsp; For record type data, I have no idea whether it does or not.&amp;nbsp; You would likely need to iterate over your original queried record type entries and cast them into an array of the new record type you want to create, but I&amp;#39;m not sure.&amp;nbsp; As far as I know, this might directly explain why your saveInto isn&amp;#39;t working.&amp;nbsp; If you want to double check, you could (temporarily) change the saveInto to point the save at a Rule Input of a record type (array) matching the type of the queried data, and see if it behaves any differently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119037?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 07:52:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9cf30e55-1c19-43f5-bf8c-0e3de8c968b0</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;Thanks Peter, but my problem is that, even if I try to save the values in the button, its like my local variable structure&amp;nbsp; is not the same as the record in which I want to save the values (it has the structure of the record queried to create the local variable)&lt;/p&gt;
&lt;p&gt;And I dont know how can I link fields of my local variable to fields of my new record (I have done it in editable grids from scratch, but not in this case)&lt;/p&gt;
&lt;p&gt;Any idea would be useful, thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119034?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 07:09:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc4d7192-230d-49ee-a21a-0edcf6f741ec</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;Hi Mike! Thanks for your answer&lt;/p&gt;
&lt;p&gt;I think the main difference between your code and mine is that your local variable default data results by querying a record type, and then saving values and adding on the same record type&amp;nbsp; (correct me if I&amp;acute;m wrong)&lt;/p&gt;
&lt;p&gt;In my case, my default data is from a record (CPF_Lineas_Pedido) and I want to save it in another record (CPF_Lineas_Recepciones).&lt;/p&gt;
&lt;p&gt;I have checked my rule input (recordLineasRecep), and logically this record is not matching the queried record (as I told you in my first paragraph). How can I change my approach to save my data in another record fields?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694502486567v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;If I change my rule input to type &amp;quot;text&amp;quot;, my values are saved (but in text format, not in record type format):&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694510085617v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694510047371v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694510065869v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I try to put it in &amp;quot;record&amp;quot; format, then the rule input remains empty ([&amp;nbsp; ])&lt;/p&gt;
&lt;p&gt;How can I change the format in order to save the values in the record?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;*Additional notes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1) It seems like my local variable has &amp;quot;dependance&amp;quot; from the record queried. I think this is causing me trouble when I try to save in a record with a different structure&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694504764421v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;2) I tried to pass my data from my local variable to another local variable (default:empty {}), but the structure and &amp;quot;dependance&amp;quot; is the same. Is it possible to make a local variable with the same structure of the new Record in which I want to save the values??? How can I configure it and the save parameter of the button?&lt;/p&gt;
&lt;p&gt;3) I have seen that is possible to point to my local variable values with loca!Data.field (being field the name of my column). But in this case my local variable is not declared manually, its a query. Is there any possibility to set the structure of my local variable when I declare it as a query?&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119005?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 20:00:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:380cc9ba-3b0b-45fe-81e6-c6914e08209c</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="251169" url="~/discussions/f/user-interface/29967/how-to-save-the-values-shown-in-my-editable-grid"]without using the saveInto parameters in non-interactive fields [/quote]
&lt;p&gt;This literally makes no difference.&amp;nbsp; All that matters is the saveInto in your &amp;quot;submit&amp;quot; button.&lt;/p&gt;
&lt;p&gt;Can you confirm what data type / configuration you have on &amp;quot;ri!recordLineasRecep&amp;quot;?&amp;nbsp; If it doesn&amp;#39;t match the record type queried into your Local Variable then the save might not work.&amp;nbsp; Your screenshot does not show enough detail to confirm what type it is or whether it&amp;#39;s correctly configured to store an array, both of which are important.&lt;/p&gt;
&lt;p&gt;I just took 5 minutes to type up a simple analogue on my dev environment and it seems to work fine (the following is what it looks like after clicking &amp;quot;test&amp;quot;)&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694462424427v1.png" /&gt;&lt;img height="193" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694462477426v1.png" width="289" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119003?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 19:44:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11fa367b-df97-4a55-9d33-53ff93413907</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;To be fair in this case it looks like it&amp;#39;s set up correctly (at least foundationally), as he does include the saveInto on &amp;quot;submit click&amp;quot; that i&amp;#39;d usually advise needs to be included for this sort of setup to work.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694461405483v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Without trying it myself I can only guess that there may be some type misalignment between the local variable recordType data and the rule input&amp;#39;s type.&amp;nbsp; Assuming those types agree, I&amp;#39;d usually assume the above would just work as-is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save the values shown in my editable grid</title><link>https://community.appian.com/thread/119000?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 19:35:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69cb07f1-a209-4e69-aea9-155ee829eb4d</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I mentioned in your other post too, just using a saveInto doesn&amp;#39;t do anything unless the user interacts with the field. I&amp;#39;d recommend instead doing the save on clicking the button to ensure that interaction will trigger the save.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>