<?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: Date</title><link>https://www.infopathdev.com:443/forums/thread/9696.aspx</link><pubDate>Fri, 05 May 2006 13:24:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9696</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9696.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9696</wfw:commentRss><description>Thanks for being so helpful everyone! It works!</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9695.aspx</link><pubDate>Fri, 05 May 2006 07:40:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9695</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9695</wfw:commentRss><description>In this case also "ReturnMessage" is thrown as an error message to the user. Instead I would suggest the Schema change.</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9694.aspx</link><pubDate>Thu, 04 May 2006 21:48:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9694</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9694</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;of course you can use Matt´s suggestion for counting the number of rows in a repeating table. I have found another way of limit the number of rows. You can use the 'position' attribute of your repeating table as I will show you in the following example:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;var repeatingTable = XDocument.DOM.SelectSingleNode(//my:repeatingTable[position() = 3]);&lt;br /&gt;if (repeatingTable != null)  // it s true when you try to add the 3th row&lt;br /&gt;{&lt;br /&gt;   e.ReturnStatus = false;&lt;br /&gt;   e.ReturnMessage = "Max three rows...";&lt;br /&gt;}&lt;/pre&gt;BTW: You can use this even if you want to force the user to insert at least one row minimum in a repeating table with the following check:&lt;br /&gt;&lt;pre&gt;var repeatingTable = XDocument.DOM.SelectSingleNode(//my:repeatingTable[position() = 1]);&lt;br /&gt;if (repeatingTable == null)  // it s true when you try to add the 3th row&lt;br /&gt;{&lt;br /&gt;   e.ReturnStatus = false;&lt;br /&gt;   e.ReturnMessage = "One row at least...";&lt;br /&gt;}&lt;/pre&gt;All should be done in the OnBeforeChange event!&lt;br /&gt;&lt;br /&gt;Hope that helps...</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9693.aspx</link><pubDate>Thu, 04 May 2006 20:05:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9693</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9693.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9693</wfw:commentRss><description>You could implement an OnBeforeChange event handler that counts the number of rows that are already in the form, and then if it is greater than 4, cancel the insert.&lt;br /&gt;&lt;br /&gt;I would think this would be a slightly easier way of doing it instead of modifying the schema. Although it does use code and Agni's solution doesn't.</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9692.aspx</link><pubDate>Thu, 04 May 2006 13:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9692</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9692.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9692</wfw:commentRss><description>Hi Agni,&lt;br /&gt;I can successfully edit the schema, but when I test the form I get an error message when the user tries to insert a fourth row in the repeating table that I have set the maxOccurs in. Is there any way to turn off or change the dialog box when this happens?&lt;br /&gt;</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9691.aspx</link><pubDate>Tue, 02 May 2006 05:25:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9691</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9691.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9691</wfw:commentRss><description>Hi, You need to edit your existing schema, you need to extract you files and edit the Schema. You dont need to reattach your schema it will get automatically affected after you edit it.&lt;br /&gt;&lt;br /&gt;Open the schema and go to the line where your repeating node is referenced and set maxOccurs to '3'&lt;br /&gt;&lt;b&gt;Before&lt;/b&gt;&lt;br /&gt;&amp;lt;xsd:element ref="my:YOURREPEATINGNODENAME" minOccurs="0" maxOccurs="unbounded"/&amp;gt;&lt;br /&gt;&lt;b&gt;After&lt;/b&gt;&lt;br /&gt;&amp;lt;xsd:element ref="my:YOURREPEATINGNODENAME" minOccurs="0" maxOccurs="3"/&amp;gt;</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9690.aspx</link><pubDate>Mon, 01 May 2006 18:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9690</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9690</wfw:commentRss><description>Hellp Agni,&lt;br /&gt;I am having trouble reattaching the schema file to the form after editing it. I keep getting this message: "&lt;i&gt;The namespace&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-05-11T14:31:09&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-05-11T14:31:09&lt;/a&gt; is reserved for nodes created by InfoPath&lt;/i&gt;". This schema was generated by InfoPath originally, do I have to change the namespace to be able to replace the current schema with the updated one? Or is there another way I can set the "minOccurs/maxOccurs" in the form itself? I've done this manytimes with an outside data source from a data base; does InfoPath create a different kind of xml file? Thanks in advance for any suggestions you might have!</description></item><item><title>Re: Date</title><link>https://www.infopathdev.com:443/forums/thread/9689.aspx</link><pubDate>Mon, 01 May 2006 16:33:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9689</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9689</wfw:commentRss><description>You need to set the Date value in the OnAfterChange event of the Row.&lt;br /&gt;&lt;br /&gt;You should set the Date value only when "e.Operation" == "Insert" and e.Source.NodeName == "ROWNODENAME"(the node on which you have the OnAfterChange Event.&lt;br /&gt;&lt;br /&gt;For the second question, yes you can limit the Max rows by editing the Schema. Open the Schema locate the node and set MaxOccurs="3".</description></item><item><title>Date</title><link>https://www.infopathdev.com:443/forums/thread/5575.aspx</link><pubDate>Mon, 01 May 2006 15:37:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5575</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5575</wfw:commentRss><description>Hello everybody,&lt;br /&gt;I have a date control in a repeating table. Each time a row is inserted, it needs to automatically populate the date control in that row to the next day. What is the best way to do this?&lt;br /&gt;Also, is there any way to limit the rows a user can insert into a repeating table? I would only like to allow the user to insert 3 rows max.</description></item></channel></rss>