<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to write code for checking forms postback and Auto Increment?</title><link>https://www.infopathdev.com:443/forums/thread/42117.aspx</link><pubDate>Wed, 27 May 2009 06:40:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42117</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42117.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42117</wfw:commentRss><description>&lt;p&gt;1. Define&amp;nbsp;two User Roles (Tools-&amp;gt;User Roles) and make one Initiator and the other Default. Add a conditional display rule for the button that checks the user role and hides the form if it is not&amp;nbsp;Initiator.&lt;br /&gt;2. What&amp;#39;s the textbox value based on? Is it based on a value in the form or a DB? Probably easiest just to have a hidden field that is a decimal value and add a rule that adds to it when you click new. Is New a button on your form? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: how to work on Form load and the Auto Increment Number?</title><link>https://www.infopathdev.com:443/forums/thread/42010.aspx</link><pubDate>Sun, 24 May 2009 10:38:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42010</guid><dc:creator>sgandhi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42010</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;firouz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;1.You can define a flag for your form. it is 1 by default.&amp;nbsp;Then set a coditional formatting in the display setting for the btn1. the condition is&amp;nbsp;: if flag &lt;strong&gt;is not equal &lt;/strong&gt;to1 hide this button. &lt;/p&gt;
&lt;p&gt;You should set a rule when you want to save or submit the form, to turn the flag back to its first value. I dont know how you want to close your form, if you are using a button to save, submit&amp;nbsp;and close form, before all of this action define an action &lt;strong&gt;set this field values&amp;nbsp;:&lt;/strong&gt;&amp;nbsp;set flag= 0&amp;nbsp;). In this way the second time that form will be opend flag is not 1 so the btn1 is visible.&lt;/p&gt;
&lt;p&gt;Ofcourse there are another ways... maybe you can use open and save rules, or role base views... but for all of them you need a flag to identify the state of your form.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;I have&amp;nbsp;a&amp;nbsp;practical&amp;nbsp;solution&amp;nbsp;using&amp;nbsp;SharePoint list. if you are using SharePoint Tell me To describe the solution.&lt;/p&gt;
&lt;p&gt;hope to be useful for you dear friend!&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;Hello Firouz,&lt;p&gt;&amp;nbsp;Nice to see your reply. See for my query with autogenerate number scenario is like this.&lt;/p&gt;&lt;p&gt;1. I have created an infopath 2007 form and hosted that in MOSS.&lt;/p&gt;&lt;p&gt;2. In that form i have a field named &amp;quot;Version&amp;quot; and its having a control &amp;quot; textbox&amp;quot;.&lt;/p&gt;&lt;p&gt;3.&amp;nbsp; So what the requirement says is that. When I click on &amp;quot;New Form&amp;quot; the above text box should be filled with 1.1 . I complete my other details and click submit. Now again i click on &amp;quot;New Form&amp;quot;. So this time the &amp;quot;Version&amp;quot; field should be automatically filled with number 1.2 and so on. after 1.9 it should be 2.0.&lt;/p&gt;&lt;p&gt;I hope i made the things clear. Looking forward to hear from you soon.&lt;/p&gt;&lt;p&gt;Many Thanks in advance &amp;#39;&lt;/p&gt;&lt;p&gt;Sumeet Gandhi &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how to work on Form load and the Auto Increment Number?</title><link>https://www.infopathdev.com:443/forums/thread/42009.aspx</link><pubDate>Sun, 24 May 2009 09:32:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42009</guid><dc:creator>firouz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42009</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;1.You can define a flag for your form. it is 1 by default.&amp;nbsp;Then set a coditional formatting in the display setting for the btn1. the condition is&amp;nbsp;: if flag &lt;strong&gt;is not equal &lt;/strong&gt;to1 hide this button. &lt;/p&gt;
&lt;p&gt;You should set a rule when you want to save or submit the form, to turn the flag back to its first value. I dont know how you want to close your form, if you are using a button to save, submit&amp;nbsp;and close form, before all of this action define an action &lt;strong&gt;set this field values&amp;nbsp;:&lt;/strong&gt;&amp;nbsp;set flag= 0&amp;nbsp;). In this way the second time that form will be opend flag is not 1 so the btn1 is visible.&lt;/p&gt;
&lt;p&gt;Ofcourse there are another ways... maybe you can use open and save rules, or role base views... but for all of them you need a flag to identify the state of your form.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;I have&amp;nbsp;a&amp;nbsp;practical&amp;nbsp;solution&amp;nbsp;using&amp;nbsp;SharePoint list. if you are using SharePoint Tell me To describe the solution.&lt;/p&gt;
&lt;p&gt;hope to be useful for you dear friend!&lt;/p&gt;</description></item><item><title>how to work on Form load and the Auto Increment Number?</title><link>https://www.infopathdev.com:443/forums/thread/42007.aspx</link><pubDate>Sun, 24 May 2009 08:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42007</guid><dc:creator>sgandhi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42007</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have to do following tasks. Please guide me how to do it.&lt;/p&gt;&lt;p&gt;1.
I have to check on form load that if its loading for first time a
button btn1 should not appear on the form else on 2nd time onwards that
btn1 should be visible.&lt;/p&gt;&lt;p&gt;2. There is a text box. i have to make
the value in that autoincrement. title of that textbox is Version. and
format of increment is 1.1, 1.2 and so on. it will be done every time a
user clicks on new.&lt;/p&gt;&lt;p&gt;Quick reply would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;Sumeet Gandhi</description></item><item><title>How to write code for checking forms postback and Auto Increment?</title><link>https://www.infopathdev.com:443/forums/thread/42006.aspx</link><pubDate>Sun, 24 May 2009 07:30:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42006</guid><dc:creator>sgandhi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42006</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have to do following tasks. Please guide me how to do it.&lt;/p&gt;&lt;p&gt;1. I have to check on form load that if its loading for first time a button btn1 should not appear on the form else on 2nd time onwards that btn1 should be visible.&lt;/p&gt;&lt;p&gt;2. There is a text box. i have to make the value in that autoincrement. title of that textbox is Version. and format of increment is 1.1, 1.2 and so on. it will be done every time a user clicks on new.&lt;/p&gt;&lt;p&gt;Quick reply would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Sumeet Gandhi &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>