<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Update — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Thu, 23 Apr 2026 16:52:38 +0000</pubDate>
        <language>en</language>
            <description>Update — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/Update/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Update Query in Exel using jdbc</title>
        <link>https://community.sahipro.com/forums/discussion/1014/update-query-in-exel-using-jdbc</link>
        <pubDate>Mon, 08 Jun 2009 03:20:31 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>praveen24by7</dc:creator>
        <guid isPermaLink="false">1014@/forums/discussions</guid>
        <description><![CDATA[Dear team,<br />
<br />
I have test data like below in excel sheet.<br />
<br />
login	password1 password2 prefix	first	last	degree	address	                    city	       testresult<br />
done20	password	 password     Mr.	Kumar	Praveen	PHD	East Mada  Street	    Chennai<br />
<br />
<br />
am able to retrive the data using below code without any issues.<br />
<br />
//to retrive the data from excel<br />
<br />
var db = _getDB(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;,&quot;jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=c:\\sahi\\testbed\\usr_data.xls;readOnly=false&quot;,&quot;&quot;,&quot;&quot;);<br />
$rs = db.select(&quot;select * from [Sheet1$]&quot;);<br />
<br />
and passed same values to the my create_user function.<br />
after Successfull creation i just wnat to udpate the same excel sheet with &quot;Pass/Fail&quot; in the &quot;testresult&quot; column based on the login.<br />
<br />
//here is the code which i wrote to update.<br />
<br />
<br />
_set($rwcnt, _table(&quot;patientresults&quot;).rows.length); // To check whether cerated user is available in the Users table in web page.<br />
<br />
for ($j=1 ; $j&lt;$rwcnt; $j++)<br />
{<br />
<br />
if (_condition(_getText(_cell(_table(&quot;patientresults&quot;), $j, 1))==$rs[$i][&quot;login&quot;]))<br />
{<br />
<br />
db.update(&quot;update [Sheet1$] set testresult='created' where login='$rs[$i][&quot;login&quot;]'&quot;);<br />
<br />
}<br />
else {<br />
<br />
db.update(&quot;update [Sheet1$] set testresult='not created' where login=$rs[$i][&quot;login&quot;]&quot;);<br />
<br />
}<br />
<br />
}<br />
<br />
<br />
//error which i got<br />
<br />
but i am getting error &quot;JSERROR missing ) after argument list&quot;. Please verify my update Query and suggest me how i can proceed.]]>
        </description>
    </item>
   </channel>
</rss>
