<?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>Read CSV file in ARAS in ClientSide/Javascript</title><link>https://www.aras.com/community/f/development/37839/read-csv-file-in-aras-in-clientside-javascript</link><description>Hello mates, I have a clumsy day today. I am trying to read an excel file, I have read that it could not be done, so I will try it with a CSV file. 
 I&amp;#39;ve looked all over the forum and Google, but I can&amp;#39;t find the key to make it work for me. 
 In this</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Read CSV file in ARAS in ClientSide/Javascript</title><link>https://www.aras.com/community/thread/9235?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 12:50:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0e7d50f2-db7c-434a-8c7a-f1b735dc4094</guid><dc:creator>FernandoCG</dc:creator><description>&lt;p&gt;Nothing, its work fine, its not&amp;nbsp;&lt;strong&gt;&lt;em&gt;rows.length(), &lt;/em&gt;&lt;/strong&gt;the correct i&lt;em&gt;s&lt;/em&gt;&lt;strong&gt;&lt;em&gt;&amp;nbsp;rows.length.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read CSV file in ARAS in ClientSide/Javascript</title><link>https://www.aras.com/community/thread/9234?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 12:07:49 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:57b1e2e1-b551-4901-940b-199eb68d1912</guid><dc:creator>FernandoCG</dc:creator><description>&lt;p&gt;OK!!!, i do it!. Works halfway!!!.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I dont know why the code stops in the line 16.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This code is similar to a post from Lucas. 2 years ago, and he did the same, he created a for and went through it with a rows.Length().&lt;br /&gt;In my case he does not get to execute that line of code. It stops before, if no error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;aras.vault.selectFile().then(
function (fileObject){
    file = fileObject;
    alert(&amp;quot;Filename:&amp;quot; + file.name);

    var reader = new FileReader();
    reader.readAsText(file);

    // here we tell the reader what to do when it&amp;#39;s done reading...
    reader.onload = readerEvent =&amp;gt; {
        var content = readerEvent.target.result; // this is the content!
        alert(&amp;quot;Contenido:&amp;quot; + content );

        var rows =content.split(&amp;quot;\n&amp;quot;);
        alert(&amp;quot;registros: &amp;quot;);
        alert(rows[1]);   // the code stops here!!!!
        alert(rows.count());
        alert(rows.length());

        var i;

        for (i = 0; i &amp;lt; rows.length(); i++){
            alert(&amp;quot;Entra en el FOR&amp;quot;);    
    
            var parts_to_add =rows[i].split(&amp;quot;;&amp;quot;);
            alert(parts_to_add);
            alert(parts_to_add[0]);
        }
    }
});
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>