<?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>Is there a way to capture delete instance in file upload field?</title><link>https://community.appian.com/discussions/f/general/12566/is-there-a-way-to-capture-delete-instance-in-file-upload-field</link><description>Requirement: 
 I have a file upload field as a column in editable grid. And I&amp;#39;m auto-populating the first uploaded document to all other rows in the editable grid. Now when I need to update a document in any other rows with a new document, the first uploaded</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a way to capture delete instance in file upload field?</title><link>https://community.appian.com/thread/56388?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 16:52:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97d5dd98-5cf3-40fd-b626-2392539fc651</guid><dc:creator>Sik-Kim</dc:creator><description>Not sure if I am understanding everything correctly, but it sounds like:&lt;br /&gt;
1. You have an editable grid with one of the columns being a file upload field&lt;br /&gt;
2. For the first gridRowLayout, when user&amp;#39;s upload a file through the file upload field, all the other gridRowLayout&amp;#39;s file upload fields are pre-populated with this first file&lt;br /&gt;
3. Users are then able to change these pre-populated file upload fields with new documents&lt;br /&gt;
&lt;br /&gt;
And your issue is at step 3, in which changing any of the other rows file upload fields with new documents leads to changing of the initial document.&lt;br /&gt;
If that is the case, it almost sounds like you have a singular variable that is being used for each row of the grid. If you do, the solution is to have a list of documentIds (e.g. ri!documentIds) that you pass into each gridRowLayout. Each gridRowLayout should also keep track of which row in the grid it is responsible for (e.g. ri!index). Once you do that, each gridRowLayout&amp;#39;s file upload field can save into ri!documentIds[ri!index] and you wont overwrite other row&amp;#39;s documents. For the first row, to prepopulate all the documents, you can simply repeat the initial documentId as many times as there are rows in the grid and then save it to the ri!documentIds list.&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>