<?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>Showing excel data in editable grid</title><link>https://community.appian.com/discussions/f/user-interface/28653/showing-excel-data-in-editable-grid</link><description>I am trying to show Student Data in editable grid through excel with marks in subjects. there is a field with total marks which is depend on marks from other fields. Problem is i am able to when i change marks of any subject changes get reflect in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Showing excel data in editable grid</title><link>https://community.appian.com/thread/112619?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 06:03:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76ca8782-aa33-4c89-bca1-ea605f93aba8</guid><dc:creator>yatins2606</dc:creator><description>&lt;p&gt;Thank You!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Showing excel data in editable grid</title><link>https://community.appian.com/thread/112614?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 20:29:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:626115e2-a24e-4888-a64b-94ece10e10ee</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;You need to understand one thing that &lt;em&gt;saveInto&lt;/em&gt; expressions are only evaluated on user interaction.&lt;/p&gt;
[quote userid="243100" url="~/discussions/f/user-interface/28653/showing-excel-data-in-editable-grid"]changes get reflect in the MarksObtained field[/quote]
&lt;p&gt;This will only take effect in the display value of the component and not in the actual field where you are trying to save the value, as&amp;nbsp;these&amp;nbsp;components are disabled and there is no user interaction to save the value in rule inputs.&lt;/p&gt;
&lt;p&gt;It is clear that we need user interaction to save the values in MarksObtained, Percentage... fields, but the question is where will the user interact?? We have&amp;nbsp;displayed the updated values in the grid that user wants to see but for storing them in variables we will utilize button widget&amp;#39;s &lt;em&gt;saveInto&lt;/em&gt; parameter.&lt;/p&gt;
&lt;p&gt;And inside that you will write something like: (Sample code)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;saveInto: a!forEach(
   ri!studentData,
   {
     a!save(
       fv!item.MarksObtained,
       sum(fv!item.Physics, fv!item.Chemistry)
     ),
     a!save(
       fv!item.Percentage,
       (fv!item.MarksObtained/fv!item.TotalMarks)*100
     )
   }
 )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>