<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: I want to save this vb script form in local drive after all the input have keyed-in....how can i do that?</title><link>https://www.infopathdev.com:443/forums/thread/85385.aspx</link><pubDate>Mon, 17 Dec 2012 21:40:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85385</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=85385</wfw:commentRss><description>&lt;p&gt;Hi Bheema,&lt;/p&gt;&lt;p&gt;qRules v4.2 includes a command to save an InfoPath form as XML to a local file system. Since we have spent time compiling all of these useful functions in the qRules library, and since we use qRules sales to pay for maintaining this forum, I humbly ask you to try the trial version (new v4.3 trial coming out next week or so). That should reduce the code in your form and be lower maintenace cost down the road. However, your form will have to be set to full trust (or installed via an MSI) since the save command requires the highest security level.&lt;/p&gt;&lt;p&gt;Best of luck,&lt;/p&gt;&lt;p&gt;P&lt;/p&gt;</description></item><item><title>I want to save this vb script form in local drive after all the input have keyed-in....how can i do that?</title><link>https://www.infopathdev.com:443/forums/thread/85356.aspx</link><pubDate>Mon, 17 Dec 2012 07:16:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85356</guid><dc:creator>bheema</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=85356</wfw:commentRss><description>I want ti save this file in csv or xml format by clicking save button..I require a function that save the file when the button clicked...How the function should be so that i will be able to do what i have mention as above?

count=2Sub doAddRow()   Dim oTbl, oRow, oCell   Set oTbl=document.getElementById(&amp;quot;mytable&amp;quot;)   Set oRow = oTbl.insertRow    Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;
count = count+1End Sub
Sub deleteRow()Dim oTbl, oRowSet oTbl=document.getElementById(&amp;quot;mytable&amp;quot;)
if count&amp;gt;2 thenoTbl.deleteRow(count-1)count = count -1end if
End sub
Sub doAddRow2()   Dim oTbl, oRow, oCell   Set oTbl=document.getElementById(&amp;quot;mytable2&amp;quot;)   Set oRow = oTbl.insertRow    Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   Set oCell = oRow.insertCell   oCell.innerHTML= &amp;quot;&amp;quot;   count = count+1End Sub
Sub deleteRow2()Dim oTbl, oRowSet oTbl=document.getElementById(&amp;quot;mytable2&amp;quot;)
if count&amp;gt;2 thenoTbl.deleteRow(count-1)count = count -1end if
End sub
Sub saveFile()Dim txtPathDim txtName
txtPath = &amp;quot;C:\Shared Folder\Emp InfoPath Forms&amp;quot;txtName = &amp;quot;form1.xml&amp;quot;
XDocument.SaveAS(txtPath &amp;amp; txtName)End sub


&lt;div id="myOutput" style="border:2px solid black;"&gt;
TESTER                                              DATE               EMP NO     6S DONE  
&lt;br /&gt;&lt;br /&gt;
WW            NAME               SHIFT  
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
PASSOVER (Please verify Summit Receipe &amp;amp; Storm before start shift)
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;

 Summit Receipe OK ?                                                                                                      Yes                                No                                                                               
&lt;br /&gt;&lt;br /&gt;     Motif/ Storm OK ?                                                                                                          Yes                                No                                                                                     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;table id="mytable"&gt;      &lt;tr&gt;&lt;td&gt;Lot Number&lt;/td&gt;   &lt;td&gt;Location&lt;/td&gt;      &lt;td&gt;Total In&lt;/td&gt;      &lt;td&gt;1 * Test&lt;/td&gt;      &lt;td&gt;2 * Test&lt;/td&gt;      &lt;td&gt;3 * Test&lt;/td&gt;      &lt;td&gt;Total Out&lt;/td&gt;     &lt;td&gt;Lot Status&lt;/td&gt;    &lt;td&gt;Remark&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;      &lt;/tr&gt;   &lt;/table&gt;&lt;br /&gt;

&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;table id="mytable2"&gt;      &lt;tr&gt;&lt;td&gt;Entry&lt;/td&gt;       &lt;td&gt;Down&lt;/td&gt;  &lt;td&gt;Up&lt;/td&gt;    &lt;td&gt;Failure Mode/Action/Remark&lt;/td&gt;    &lt;td&gt;D/T&lt;/td&gt;   &lt;td&gt;Attended By&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;       &lt;td&gt; &lt;/td&gt;     &lt;/tr&gt; &lt;/table&gt;&lt;br /&gt;

&lt;/div&gt;</description></item></channel></rss>