<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Record count in a data connection...</title><link>https://www.infopathdev.com:443/forums/thread/17256.aspx</link><pubDate>Thu, 20 Apr 2006 16:15:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17256</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17256</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;...for anyone who is interested in...&lt;br /&gt;&lt;br /&gt;In the meantime I have found a way to count any nodes regardless if they are in a primary or a secondary data source. &lt;br /&gt;And it´s really easy. You just can take an 'expression box' control. &lt;br /&gt;Within this expression box use the 'count' function of XSD.&lt;br /&gt;For example if you want to count the elements of a repeating table the expression looks like:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;count(my:groupname/my:fieldname)&lt;/pre&gt;With this you can also count records of a secondary data source even with filter conditions.&lt;br /&gt;&lt;br /&gt;Hope this helps anyone</description></item><item><title>Re: Record count in a data connection...</title><link>https://www.infopathdev.com:443/forums/thread/17255.aspx</link><pubDate>Fri, 31 Mar 2006 00:40:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17255</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17255</wfw:commentRss><description>I think you should be able to do this:&lt;br /&gt;&lt;br /&gt;var recordCount = XDocument.GetDOM( "vReportWebWarenkorb" ).selectNodes( "XPath/To/Nodes" ).length;&lt;br /&gt;&lt;br /&gt;If it gives you an error about namespaces, you will need to setup a reference to the DOM before calling selectNodes() and make sure to use the .setProperty() to add the namespace prefixes.&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Record count in a data connection...</title><link>https://www.infopathdev.com:443/forums/thread/16798.aspx</link><pubDate>Thu, 30 Mar 2006 17:05:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16798</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16798</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have the following code in an "AfterUpdate" event:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;function msoxd_my_cboProdukttyp::OnAfterChange(eventObj)&lt;br /&gt;{&lt;br /&gt;	var IDProdukttyp = XDocument.DOM.selectSingleNode("//my:cboProdukttyp");&lt;br /&gt;	&lt;br /&gt;	var adoDataAdapter = XDocument.DataObjects["vReportWebWarenkorb"].QueryAdapter;&lt;br /&gt;	adoDataAdapter.Command = "Select * From vReportWebWarenkorb Where ptID = " + IDProdukttyp.text + " Order by Produkt";&lt;br /&gt;	adoDataAdapter.Query();&lt;br /&gt;&lt;br /&gt;	if (eventObj.IsUndoRedo)&lt;br /&gt;		{&lt;br /&gt;			return;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Is there an easy way to get the recordcount of the "Select" statement?&lt;br /&gt;&lt;br /&gt;Thank you very much for any help.</description></item></channel></rss>