<?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: InfoPath2003- Secondary Datasource binding using JScript - Add New Row to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/72182.aspx</link><pubDate>Fri, 18 Nov 2011 07:57:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72182</guid><dc:creator>ganee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72182.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72182</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  JA
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:&amp;quot;MS Mincho&amp;quot;;
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-bidi-theme-font:minor-bidi;}


 

 
  
 &lt;span style="font-size:9pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Tools:
InfoPath 2003 &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:9pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Language: JScript &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:9pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;I have a form that pulls data from a database
through a webservice, and I have this datasource bound to a repeating table.
What I would like to be able to do is to insert/edit/ or delete records in this
repeating table so that when chages are done I can use another webservice to
write this corrected table back to the database. When you
bind a repeating table to a secondary datasource then the insert/delete is no
longer available.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to add a Xml Node to the secondary source&amp;nbsp; and assuming that it creates a new row in the UI. Correct me if i&amp;#39;m wrong. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:9pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Also please let me know how do I get around this? Our goal is to do as much as
possible without the use of code, but I would be open to that as a solution if
that is the only way this can be done.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: InfoPath2003- Secondary Datasource binding using JScript - Add New Row to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/72181.aspx</link><pubDate>Fri, 18 Nov 2011 07:28:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72181</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72181</wfw:commentRss><description>&lt;p&gt;The dfs namespace url was right the way it was before.&amp;nbsp; That shouldn&amp;#39;t be changed.&amp;nbsp; And as I pointed out previously, it appears that this path is missing a whole bunch of pieces between dfs:dataFields and Product notes, and you also need to add the d: prefix before ProductNotes, ProductNote, etc.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;/dfs:myFields/dfs:dataFields/ProductNotes/ProductNote&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can I ask what it is you&amp;#39;re looking to do with this code, exactly?&lt;/p&gt;</description></item><item><title>Re: InfoPath2003- Secondary Datasource binding using JScript - Add New Row to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/72180.aspx</link><pubDate>Fri, 18 Nov 2011 07:08:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72180</guid><dc:creator>ganee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72180</wfw:commentRss><description>Thanks for your response Jimmy Rishe.&lt;br /&gt;&lt;br /&gt;Still i&amp;#39;m unable to parse the xml after using the namespace in JScript. See my below code. Please let me know where i&amp;#39;m making mistake.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;var secondDS = XDocument.GetDOM(&amp;quot;GetProductNotes&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; secondDS.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:dfs=&amp;quot;http://thomsonlearning.ecomm.orca.com&amp;quot;&amp;#39;+&amp;#39; xmlns:d=&amp;quot;http://thomsonlearning.ecomm.orca.com&amp;quot;&amp;#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var secondaryRepeatingNodes = secondDS.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/ProductNotes/ProductNote&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.UI.Alert(secondaryRepeatingNodes.length); &lt;/i&gt;&lt;br /&gt;</description></item><item><title>Re: InfoPath2003- Secondary Datasource binding using JScript - Add New Row to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/72147.aspx</link><pubDate>Thu, 17 Nov 2011 14:26:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72147</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72147</wfw:commentRss><description>&lt;p&gt;It looks like beneath dfs:dataFields, you have GetProductsNoteResponse, GetProductsNodeResult, ProductNotes, and then ProductNote, and these all have the namespace &lt;a href="http://thomsonlearning.ecomm.orca.com/"&gt;http://thomsonlearning.ecomm.orca.com&lt;/a&gt;, so you need to assign a namespace prefix to that url in the selection namespaces and use that in the XPath.&lt;/p&gt;</description></item><item><title>InfoPath2003- Secondary Datasource binding using JScript - Add New Row to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/72138.aspx</link><pubDate>Thu, 17 Nov 2011 07:43:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72138</guid><dc:creator>ganee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72138</wfw:commentRss><description>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}


 
  Normal
  0
  false
  
  
  
  false
  false
  false
  
  EN-US
  JA
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}



&lt;p&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;I am new
to INFOPATH. I am using INFOPATH 2003 and .NET webservice which connect&amp;#39;s
database. I binded the Repeating Table from the webservice datasource(Secondary
Datasource). This table contains 3 rows. Now i want to add a new row to the
repeating table but binding the repeating table not allowing me to create a new
row using &lt;b&gt;Xdocument.View.ExecuteAction(..)&lt;/b&gt;.
After more googling i found its possible through JScript. I&amp;#39;ve written the code
like below.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;var secondDS = XDocument.GetDOM(&amp;quot;GetProductNotes&amp;quot;); &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;secondDS.setProperty(&amp;quot;SelectionNamespaces&amp;quot;,
&amp;#39;xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;#39;+&amp;#39;
xmlns:d=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;quot;&amp;#39;);
&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;var secondaryRepeatingNodes =
secondDS.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/ProductNote&amp;quot;); &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:red;"&gt;XDocument.UI.Alert(secondaryRepeatingNodes.length); &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&amp;nbsp;This
returns &amp;quot;0&amp;quot; here. What is the problem? I’ve given the XML structure
in the attachment. Please help. This is urgent.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;
 
 
  
  
  
  
  
  
  
  
  
  
  
  
 
 
 

 
&lt;img width="624" height="351" alt="" /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>