<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57317.aspx</link><pubDate>Fri, 23 Jul 2010 23:16:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57317</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57317</wfw:commentRss><description>&lt;p&gt;Wonderful -- glad you got it sorted out! That whole &amp;quot;comment out, publish, admin approve, test&amp;quot; cycle is a treat, isn&amp;#39;t it?&lt;/p&gt;</description></item><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57313.aspx</link><pubDate>Fri, 23 Jul 2010 21:55:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57313</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57313</wfw:commentRss><description>&lt;p&gt;Hilary, thanks for your advice.&amp;nbsp; I commented out most of the code and it started to work.&amp;nbsp; So I started removing the comments ( &amp;#39; ) one line at a time.&amp;nbsp;&amp;nbsp;I realized that I was assigning a value to the Web enabled form, I was trying to assign a date value.&amp;nbsp; When&amp;nbsp;I&amp;nbsp;casted the date to a string, CStr()&amp;nbsp;, it worked.&amp;nbsp; I just have to remember any value you assigned to a Web enabled form should be casted as a string.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Again,&amp;nbsp; Thank,s&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57293.aspx</link><pubDate>Fri, 23 Jul 2010 15:34:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57293</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57293</wfw:commentRss><description>&lt;p&gt;The one thing I&amp;#39;ve seen in common with the errors is that they all refer to an exception in the code -- so it would seem there is something in your code that causes an exception when it runs in the browser but not in the client. &lt;/p&gt;
&lt;p&gt;I know that probably sounds obvious -- and the question is obviously &amp;quot;But WHAT is causing the exception???&amp;quot; And I don&amp;#39;t have an answer for that, but I do know that in the past one way I&amp;#39;ve worked out where the issue is in the browser is by commenting out parts of my code and seeing if I still get an error, then gradually re-enabling things, so I can narrow down WHERE the error is. Then you&amp;#39;ll have something more specific to search out than a rather unhelpful error code.&lt;/p&gt;
&lt;p&gt;You should also check your server logs, to see if you can get more info. These logs are located on the server, generally at: C:\Program Files\Common Files\Microsoft Shared\web server&lt;br /&gt;extensions\12\LOGS. I normally try to provoke an error RIGHT before I open the latest log file, to make it easier to find.&lt;/p&gt;</description></item><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57224.aspx</link><pubDate>Thu, 22 Jul 2010 23:03:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57224</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57224</wfw:commentRss><description>&lt;p&gt;Could be a problem with your SharePoint server. Have you checked the SharePoint logs?&lt;/p&gt;</description></item><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57223.aspx</link><pubDate>Thu, 22 Jul 2010 22:03:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57223</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57223</wfw:commentRss><description>&lt;p&gt;It is vb.net.&amp;nbsp; I have googled the error code for weeks and have done what they have suggested to no avail.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Re: Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57215.aspx</link><pubDate>Thu, 22 Jul 2010 21:24:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57215</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57215</wfw:commentRss><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not a huge VB person and I can&amp;#39;t even tell the difference between VB.NET and VBscript - browser obviously will not support VBscript, so please verify it&amp;#39;s VB.NET or C#.NET. Sorry I can&amp;#39;t tell just by looking at the code anymore. I used to be able to do that but haven&amp;#39;t been coding in quite a while.&lt;/p&gt;
&lt;p&gt;Assuming that isn&amp;#39;t an issue, you should probably make sure the form is admin deployed. Full Trust forms will require Admin Deploy. &lt;/p&gt;
&lt;p&gt;Finally, have you searched Google for the error code?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Count field and group by date</title><link>https://www.infopathdev.com:443/forums/thread/57197.aspx</link><pubDate>Thu, 22 Jul 2010 17:10:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57197</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57197</wfw:commentRss><description>&lt;p&gt;I have created an InfoPath form (Web enabled)&amp;nbsp;that schedules training&amp;nbsp;for a specific data.&amp;nbsp;&amp;nbsp;Two of the fields are used to set the next seatNum and also to show the available&amp;nbsp;seats left on a specific date.&amp;nbsp;When I use the InfoPath form it works.&amp;nbsp; When I used the Web enabled form I get a 5337 error and the available seats is not calculated.&amp;nbsp; I checked the Design Checker and it returned no errors or messages.&amp;nbsp; My data connection point to the same SharePoint site where the form is located so there is no double hop issue.&amp;nbsp; The form is set to Full Trust&amp;nbsp; Below is the code I use to calculate those two fields.&lt;/p&gt;
&lt;p&gt;Why does this not work when the form is Web enabled?&lt;/p&gt;&lt;font size="2"&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim xPath As XPathNavigator = DataSources(&amp;quot;SharePoint Training&amp;quot;).CreateNavigator()&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim ns As XmlNamespaceManager = Me.NamespaceManager&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim SeatIter As XPathNodeIterator = xPath.Select(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training/@Seat__&amp;quot;, ns)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim classDate As XPathNodeIterator = xPath.Select(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training/@Class_Date&amp;quot;, ns)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim xForm As XPathNavigator = Me.CreateNavigator()&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim formClassDate As Date = xForm.SelectSingleNode(&amp;quot;/my:SharePointTraining/my:dClassDate&amp;quot;, ns).Value&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim seatNum As XPathNavigator = xForm.SelectSingleNode(&amp;quot;/my:SharePointTraining/my:seat&amp;quot;, ns)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim availSeats As XPathNavigator = xForm.SelectSingleNode(&amp;quot;/my:SharePointTraining/my:AvailSeats&amp;quot;, ns)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim cnt As Integer&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Dim dClassDate As Date&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;While (SeatIter.MoveNext())&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;classDate.MoveNext()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;dClassDate = classDate.Current.Value&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;If formClassDate = dClassDate Then&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;cnt = cnt + 1&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;End If&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;If formClassDate &amp;gt; dClassDate Then&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;cnt = cnt + 1&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Exit While&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;End If&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;End While&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;If cnt &amp;gt; 0 Then&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;seatNum.SetValue(cnt)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;End If&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;availSeats.SetValue(CStr((11 - cnt)))&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;/span&gt;TIA Mike&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>