<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40233.aspx</link><pubDate>Wed, 01 Apr 2009 18:09:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40233</guid><dc:creator>JeffTangen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40233</wfw:commentRss><description>&lt;p&gt;Thanks you two.&amp;nbsp; It works awesome!!!&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40228.aspx</link><pubDate>Wed, 01 Apr 2009 15:39:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40228</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40228</wfw:commentRss><description>&lt;p&gt;Hi, Jeff -- see attached template. I modified my schema and the code. Let me know if you need more info, okay?&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40226.aspx</link><pubDate>Wed, 01 Apr 2009 15:33:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40226</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40226.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40226</wfw:commentRss><description>&lt;p&gt;Please try this modified version of Hilary&amp;#39;s form.&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40221.aspx</link><pubDate>Wed, 01 Apr 2009 15:10:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40221</guid><dc:creator>JeffTangen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40221</wfw:commentRss><description>&lt;p&gt;Hi Hilary.&amp;nbsp; Thanks for the help.&amp;nbsp; I almost got it to work.&amp;nbsp; The only diference is that Charges also repeats.&amp;nbsp; The script works on the first charge but not the second or higher charge.&amp;nbsp; I think the script needs to know which charge it is in.&amp;nbsp; Thank you so&amp;nbsp; much for the sample.&amp;nbsp; It helped me understand where the script should be placed and the format.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Charges is in a Master/Details format.&lt;/p&gt;
&lt;p&gt;2. ChargeDetails is a child of Charges.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.infopathdev.com/photos/dbxlerrors/images/40220/original.aspx" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40191.aspx</link><pubDate>Tue, 31 Mar 2009 18:46:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40191</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40191</wfw:commentRss><description>&lt;p&gt;Hi, Jeff:&lt;/p&gt;
&lt;p&gt;The code sample Jimmy posted was C# for the 2007 InfoPath model. I&amp;#39;m attaching a sample form that has jscript on the after change event for a checkbox that then removes a repeating group....&lt;/p&gt;
&lt;p&gt;Right click on the link in the heading of this post and &lt;strong&gt;Save As&lt;/strong&gt; to get the file. Then you can open in design mode and preview to test it. You&amp;#39;ll be able to look at the script file as well, to see how it works. Let us know if you need more help!&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40189.aspx</link><pubDate>Tue, 31 Mar 2009 18:09:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40189</guid><dc:creator>JeffTangen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40189</wfw:commentRss><description>&lt;p&gt;I still can&amp;#39;t get this right.&amp;nbsp; &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Here is my real xpath:&amp;nbsp;&amp;nbsp; /my:myFields/my:Charges/my:ChargeDetails&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Here is the function I am trying to get to work.&amp;nbsp; It is in script.js.&amp;nbsp; I am no programmer but I think it needs to be javascript.&amp;nbsp; It needs to be able to open in Infopath 2003.&amp;nbsp; I got rid of the delete self because I don&amp;#39;t want the row in &amp;quot;Charges&amp;quot; deleted just &amp;quot;ChargeDetails&amp;quot;.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function msoxd_my_Cancellation::OnAfterChange(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;if (eventObj.IsUndoRedo)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator Charges = e.Site.SelectSingleNode(&amp;quot;..&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string myNamespace = NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (Charges.MoveToChild(&amp;quot;ChargeDetails&amp;quot;, myNamespace))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;return;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help will be appreciated..&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40086.aspx</link><pubDate>Fri, 27 Mar 2009 15:37:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40086</guid><dc:creator>JeffTangen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40086</wfw:commentRss><description>&lt;p&gt;Thanks for the input.&amp;nbsp; I don&amp;#39;t want the group2 row deleted, just the group 3 row below it.&amp;nbsp; Below is a screen shot of the form.&amp;nbsp; This is a documentation we use to bill for patients.&amp;nbsp; Group2 is in a Master/Detail control. The Patient List is the &amp;quot;Master&amp;quot; and the check marks above Procedure&amp;nbsp;are the &amp;quot;Details&amp;quot;.&amp;nbsp; The row that begins with procedure (I circled with Black)&amp;nbsp;is a blank row that infopath always creates and wants to submit to the database.&amp;nbsp; I want this row removed if the patient is a canelation (CX), Reschedule (RS), or a No Show (NS).&amp;nbsp; I don&amp;#39;t want to remove the CX, RS, or NS Check Box info just the rows in the child table.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img title="ChargeSheetForm" style="WIDTH:840px;HEIGHT:748px;" height="748" alt="ChargeSheetForm" src="http://www.infopathdev.com/photos/dbxlerrors/images/original/ChargeSheetForm.aspx" width="840" /&gt;&lt;/p&gt;</description></item><item><title>Re: Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40076.aspx</link><pubDate>Fri, 27 Mar 2009 07:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40076</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40076</wfw:commentRss><description>&lt;p&gt;The title and first sentence of your post really have almost nothing to do with your actual question, and it doesn&amp;#39;t really make sense to me to use a checkbox instead of a button&amp;nbsp;for this purpose.&amp;nbsp; Having a checkbox that says &amp;quot;No Show&amp;quot; and deleting the entire group instead of hiding it is misleading.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nonetheless, if you were to use a checkbox, and the checkbox&amp;#39;s field were a child of my:group2, the code would be something like this:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;blockquote&gt;
&lt;p&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.NewValue == &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;true&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; group2 = e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;..&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myNamespace = NamespaceManager.LookupNamespace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (group2.MoveToChild(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;group3&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, myNamespace))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group2.DeleteSelf();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;</description></item><item><title>Add event to Check Box in InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/40063.aspx</link><pubDate>Thu, 26 Mar 2009 23:34:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40063</guid><dc:creator>JeffTangen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40063</wfw:commentRss><description>&lt;p&gt;I was wondering is anyone has had experience adding an event to a check box.&amp;nbsp; I have a form with 2 repeating tables in a Parent/Child arrangement.&amp;nbsp; If a certain check box called &amp;quot;No Show&amp;quot; is checked I want all the rows in the &amp;quot;Current&amp;quot; rows child table removed.&amp;nbsp; The following article talks about a button but the code cannot handle nested repeating tables.&amp;nbsp; It uses /my:myFields/my:group1/my:group2 (my:group2 is a repeating table.)&amp;nbsp; I want to do /my:myFields/my:group1/my:group2/my:group3 (where my:group2 and my:group3 are both repeating tables.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.bizsupportonline.net/infopath2007/programmatically-delete-all-rows-repeating-table-infopath.htm"&gt;http://www.bizsupportonline.net/infopath2007/programmatically-delete-all-rows-repeating-table-infopath.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>