<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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 read data from user selected file</title><link>https://www.aras.com/community/f/development/36471/how-to-read-data-from-user-selected-file</link><description>Hello I&amp;#39;m currently trying to build a method to create parts from csv files selected by the user. I&amp;#39;m having issues with accessing the fileObject data which i need to then create my parts. I&amp;#39;ve tried different ways to read the file but it hasn&amp;#39;t been</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to read data from user selected file</title><link>https://www.aras.com/community/thread/6678?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 14:58:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d0bba59c-0fda-49b6-ac51-a53ec286e25f</guid><dc:creator>lucas</dc:creator><description>&lt;p&gt;thanks for your help.&lt;/p&gt;
&lt;p&gt;var read = new FileReader();&lt;br /&gt; read.readAsText(fileObject);&lt;br /&gt; //read.onload = function(){read.readAsText(fileObject);}&lt;br /&gt; //var fileContents= read.results;&lt;br /&gt; read.onload = readerEvent =&amp;gt; &lt;br /&gt; {&lt;/p&gt;
&lt;p&gt;this fixed my problem. if anyone have the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read data from user selected file</title><link>https://www.aras.com/community/thread/6669?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 11:47:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6484a08f-f777-453c-a8fd-b4e4fa5f68eb</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;This is a variant that I previously used, also I used a native JS filepicker and not the inbuild one from Aras (my fileObject is slightly different).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;var reader = new FileReader();&lt;br /&gt; if (reader.readAsBinaryString) {&lt;br /&gt;&amp;nbsp; reader.onload = function (e) {&lt;br /&gt;&amp;nbsp; ProcessFile(e.target.result);&lt;br /&gt; };&lt;br /&gt; reader.readAsBinaryString(fileUpload.files[0]);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;I right now work on an alternative BatchLoader that can upload XLS, XLSX, CSV and TXT. It shall mainly be used for BOM import, but I also want to use it for all kind of imports for Aras instances without subscription.&lt;/p&gt;
&lt;p&gt;I search for people that want to join in the project. My current draft works and imports already. It can be flexible used for various kind of import and even contains a preview of the data. But it&amp;acute;s not performance optimized yet and validation before import is missing. If you or anyone else in community is interested in active (!) collaboration, you would be welcomed to join the project!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read data from user selected file</title><link>https://www.aras.com/community/thread/6668?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 10:04:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:5a34474e-c76d-40e2-9e09-65be4f4148f8</guid><dc:creator>lucas</dc:creator><description>&lt;p&gt;&lt;span&gt;read = new FileReader();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the part i&amp;#39;m having troubles with&lt;/span&gt;&lt;br /&gt;&lt;span&gt;//read.readAsText(fileObject);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;read.onload = function(){read.readAsText(fileObject);}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;***&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var fileContents= read.results;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>