<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/109430.aspx</link><pubDate>Wed, 08 Feb 2017 13:30:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109430</guid><dc:creator>Stuart Shutts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=109430</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I created a dual approach for this, which includes allocating one of the fields in the repeat table to be an autonumber field, then placing a rule on the entire repeat table, that if &amp;#39;NumberingField&amp;#39; = (max number of rows #), then do not allow users to enter new row checkbox.&amp;nbsp; This is a simple way to do this without having to export and change the maxoccure.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font face="Times New Roman" size="3"&gt;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;
&lt;/font&gt;When creating repeating table, allocate a column
for ‘auto number’ ; make the field a calculated field (Field1 as Example), and
use this rule in the field: &lt;span style="background:yellow;mso-highlight:yellow;"&gt;count(preceding-sibling::*)
+ 1&lt;/span&gt;&lt;/p&gt;&lt;ul style="list-style-type:disc;direction:ltr;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;Create a format rule on the entire repeating
table, and then put condition that ‘Field1 = 4 (The Max # of Lines that i
wanted as example.)&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;Choose control ‘Don’t allow users to insert or
delete this control’&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;People can add up to the maximum you want, then
trying to click the button, it just won’t let them add.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;







&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/99070.aspx</link><pubDate>Thu, 11 Sep 2014 19:45:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99070</guid><dc:creator>mwallebeck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=99070</wfw:commentRss><description>Hey there.  Sooo... I have a similar issue as above.  I am not creating a form from scratch out of infopath.  I have to work with the form template from the sharepoint server.  Having said that, it is a web based form and I cannot find a way to limit the number of rows in the repeating table in the schema file without creating an error when it opens from the Sharepoint list.  Do you know if this feature is enabled in a web form?  

Thanks!

*EDIT:  So I have been messing around with is a little more.  When ever I publish the form to the sharepoint server, somehow the schema file variable gets changed back from 3 to unbounded.  Does anyone have an idea how to prevent this from happening.</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/92281.aspx</link><pubDate>Sun, 18 Aug 2013 23:35:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92281</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=92281</wfw:commentRss><description>&lt;p&gt;Beautiful!&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/92235.aspx</link><pubDate>Thu, 15 Aug 2013 19:13:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92235</guid><dc:creator>ShivaKalluri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=92235</wfw:commentRss><description>Hi,

I found a way to customize the message you see in the alert box after maxOccurs property is changed in the schema.xsd file. However, this I tested in browser enabled forms only.

The OOB message that gets displayed in the alert box comes from a variable &amp;quot;k_strValidationMaxChildCountFormat &amp;quot; in a javascript file called &amp;quot;IntlCoreStrings.Js&amp;quot;.
This can be overwritten using the below code. Put this code in Form Loading event of form&amp;#39;s code behind.

The default message is &amp;quot;A new item could not be inserted. In this form only a maximum of {0} items is allowed.&amp;quot;. In the below example I replaced it with &amp;quot;Test{0}&amp;quot;. 


            string strScript = &amp;quot;IntlCoreStrings.k_strValidationMaxChildCountFormat = \&amp;quot;Test{0}\&amp;quot;;&amp;quot;;
            Page pgCurrent = HttpContext.Current.Handler as Page;
            if (pgCurrent != null)
            {
                ScriptManager.RegisterStartupScript(pgCurrent, pgCurrent.GetType(), &amp;quot;Alert&amp;quot;, strScript, true);
                return;
            }

Make sure you add the references for the System.Web and System.Web.Extentions assemblies in you solution. Also, the using tags for System.Web and System.Web.UI.

I know I replied very late. But, this can help others who comes here for a solution :)

Thanks,
Shiva</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/41540.aspx</link><pubDate>Mon, 11 May 2009 15:55:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41540</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=41540</wfw:commentRss><description>&lt;p&gt;Hi, Elsa -- welcome to the forum.&lt;/p&gt;
&lt;p&gt;As far as I know, there is no upper limit. The schema for the repeating group says that the max is &amp;#39;unbounded&amp;#39;, which means.... no upper limit. Keep in mind that as your xml file increases in size (which will happen as new groups are inserted) you may eventually see some performance issues for that xml file.&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/41538.aspx</link><pubDate>Mon, 11 May 2009 15:38:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41538</guid><dc:creator>Elsa Alves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=41538</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was searching for information about the limit of repeating sessions and i found this forum, it looks you&amp;#39;re an expert on the subject. What i need to know is the opposite of the above.&amp;nbsp;Do you know the&amp;nbsp;standard limit of rows for repeating sessions, i mean, if we don&amp;#39;t impose a limit, does Infopath have &amp;quot;standard&amp;quot; limit of rows that can be inserted?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you very much&lt;/p&gt;
&lt;p&gt;Elsa &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/33909.aspx</link><pubDate>Wed, 05 Nov 2008 16:43:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33909</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33909</wfw:commentRss><description>&lt;p&gt;Genius - it works!&amp;nbsp; Thanks so much again.&lt;/p&gt;
&lt;p&gt;As you&amp;#39;ve been such a great help, maybe you could look at another query I&amp;#39;ve posted on here - I&amp;#39;ve had some help from another person in the forum but they were working on IP2007 so I&amp;#39;ve come up stuck again.&amp;nbsp; Again, it&amp;#39;s not a life or death thing but something that would really improve the functionality of my form.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/9483/33748.aspx#33748"&gt;http://www.infopathdev.com/forums/p/9483/33748.aspx#33748&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/33903.aspx</link><pubDate>Wed, 05 Nov 2008 15:21:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33903</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33903</wfw:commentRss><description>&lt;p&gt;You aren&amp;#39;t a pain at all! Export the source files. Close the form. Change the schema file in the folder with your source files. Open manifest.xsf in your source files&amp;nbsp;in design mode, and &amp;#39;Save As&amp;#39; a&amp;nbsp; new .xsn to basically &amp;#39;repack&amp;#39; those source files up in a template..... make sense?&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/33900.aspx</link><pubDate>Wed, 05 Nov 2008 13:07:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33900</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33900</wfw:commentRss><description>&lt;p&gt;Hmmm, think I must be doing something wrong here.&amp;nbsp; I&amp;#39;m using IP 2003 and don&amp;#39;t have any options to &amp;quot;Save&amp;quot; my form as source file - only the option to export the source files.&amp;nbsp; I can do that and then alter the schema but it doesn&amp;#39;t change the way the form works - presumably they&amp;#39;re no longer &amp;quot;joined&amp;quot; after I export the source files?&lt;/p&gt;
&lt;p&gt;Hate to be a pain but it would make my life easier if I could sort this out :)&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/33753.aspx</link><pubDate>Fri, 31 Oct 2008 18:37:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33753</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33753</wfw:commentRss><description>&lt;p&gt;After you saved as source files, did you close your form? If the form is still open, it is &amp;#39;using&amp;#39; those form files, like the schema, so they will open read only....&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/33751.aspx</link><pubDate>Fri, 31 Oct 2008 17:33:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33751</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33751.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33751</wfw:commentRss><description>&lt;p&gt;Hi Hilary, I am attempting to do the same thing on a form I have designed.&amp;nbsp; I&amp;#39;ve exported the source files and opened myschema.xsd in notepad&amp;nbsp;so I can set &amp;nbsp;the &amp;quot;maxOccurs&amp;quot; however when I try to save or exit the schema I get an error message saying it cannot create file and to check the file name and path are valid....any ideas?&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/32400.aspx</link><pubDate>Fri, 19 Sep 2008 19:32:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32400</guid><dc:creator>jrudolph</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32400</wfw:commentRss><description>&lt;p&gt;okay well thanks anyways. I like this method, and it is probably going to be rare that the message pops up anyways.&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/32399.aspx</link><pubDate>Fri, 19 Sep 2008 19:30:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32399</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32399</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t know of a way to change the message. It is ugly, isn&amp;#39;t it! I imagine there is a way in code....&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/32394.aspx</link><pubDate>Fri, 19 Sep 2008 18:22:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32394</guid><dc:creator>jrudolph</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32394</wfw:commentRss><description>&lt;p&gt;I cant seem to find the &amp;quot;counter&amp;quot;&amp;nbsp;control or formating.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am building a web enabled form does that matter?&lt;/p&gt;
&lt;p&gt;Never mind I figured it out, use the &amp;quot;count&amp;quot; function as part of the default settings.&lt;/p&gt;</description></item><item><title>Re: Limit amount of repeating table rows that can be created</title><link>https://www.infopathdev.com:443/forums/thread/32393.aspx</link><pubDate>Fri, 19 Sep 2008 18:16:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32393</guid><dc:creator>jrudolph</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32393</wfw:commentRss><description>&lt;p&gt;Thanks Hilary, that works great. Do you know if there is a way to change they type of message that appears?&lt;/p&gt;</description></item></channel></rss>