<?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: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13990.aspx</link><pubDate>Fri, 18 Nov 2005 14:42:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13990</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13990</wfw:commentRss><description>No problem - good luck!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13989.aspx</link><pubDate>Fri, 18 Nov 2005 14:21:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13989</guid><dc:creator>mdsmitty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13989</wfw:commentRss><description>Matt,&lt;br /&gt;&lt;br /&gt;Thanks for the response...that sounds like an easier method and a perspective that I haven't thought of.  Developement can give you a bad case of tunnel vision from time to time.  That seems like a better angle of attack.  I will look into it and let you know how it goes.&lt;br /&gt;&lt;br /&gt;Thanks again&lt;br /&gt;Smitty</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13988.aspx</link><pubDate>Wed, 16 Nov 2005 16:44:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13988</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13988</wfw:commentRss><description>Hi Richard,&lt;br /&gt;&lt;br /&gt;Earlier, you mentioned VBScript or VB.Net, the line I gave you is VB.Net.&lt;br /&gt;You posted JScript.  In that case, the event is "eventObj", not "e".&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13987.aspx</link><pubDate>Wed, 16 Nov 2005 16:09:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13987</guid><dc:creator>Rip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13987.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13987</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by franck&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Richard,&lt;br /&gt;&lt;br /&gt;In your OnBeforeChange event (the global one triggered for all checkboxes), prompt the users and to cancel the event if needed use: &lt;br /&gt;e.ReturnStatus = False&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Franck,&lt;br /&gt;I am not sure I understand how to do this.  I am including a simple sample of what code I have.  I have a check box named checkall and two text boxes; dataone and datatwo.  If the checkbox is checked dataone and datatwo have 0 inserted.  If unchecked blank inserted.  Each time the status of the checkbox checkall is changed I want a confirm box to popup.  Thanks for any direction you can provide.&lt;br /&gt;&lt;br /&gt;Rip&lt;br /&gt;&lt;br /&gt;Code Sample:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function msoxd_my_checkall::OnBeforeChange(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;	// Warning: ensure that the constraint you are enforcing is compatible with the default value you set for this XML node.&lt;br /&gt;	if (eventObj.Operation == "Insert"){&lt;br /&gt;	var mychoice = XDocument.UI.Confirm("Update Fields?", 1); &lt;br /&gt;		if (mychoice == 2){&lt;br /&gt;			e.ReturnStatus = False;&lt;br /&gt;		} &lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function msoxd_my_checkall::OnAfterChange(eventObj)&lt;br /&gt;{&lt;br /&gt;// Write code here to restore the global state.&lt;br /&gt;&lt;br /&gt;	if (eventObj.IsUndoRedo)&lt;br /&gt;		{&lt;br /&gt;			// An undo or redo operation has occurred and the DOM is read-only.&lt;br /&gt;			return;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;// A field change has occurred and the DOM is writable. Write code here to respond to the changes.&lt;br /&gt;	if (eventObj.Operation == "Insert"){&lt;br /&gt;	&lt;br /&gt;		var myzero = "0";&lt;br /&gt;		var myblank = ""; &lt;br /&gt;	&lt;br /&gt;		if (eventObj.Site.selectSingleNode("../my:checkall").text == "true"){&lt;br /&gt;			//Checkbox Unchecked&lt;br /&gt;				XDocument.DOM.selectSingleNode("//my:dataone").text = myzero;&lt;br /&gt;				XDocument.DOM.selectSingleNode("//my:datatwo").text = myzero;&lt;br /&gt;				&lt;br /&gt;		}else{&lt;br /&gt;			//Checkbox Unchecked&lt;br /&gt;				XDocument.DOM.selectSingleNode("//my:dataone").text = myblank;&lt;br /&gt;				XDocument.DOM.selectSingleNode("//my:datatwo").text = myblank;&lt;br /&gt;		}&lt;br /&gt;		&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Richard T. Henry&lt;br /&gt;Lewisberry, PA, USA&lt;br /&gt;riphenry@gmail.com</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13986.aspx</link><pubDate>Wed, 16 Nov 2005 15:20:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13986</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13986.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13986</wfw:commentRss><description>This is a pretty late response to mdsmitty, but in this specific case instead of using an OnAfterChange() on the checkbox folder you could use OnSwitchView(). This way instead of processing the checkboxes with every click you do it just once (maybe slight performance gain?). Also, you don't have to worry about depopulating your list on an uncheck, you only have to generate the list once when the views are changed.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13985.aspx</link><pubDate>Wed, 16 Nov 2005 15:06:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13985</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13985.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13985</wfw:commentRss><description>Hi Richard,&lt;br /&gt;&lt;br /&gt;In your OnBeforeChange event (the global one triggered for all checkboxes), prompt the users and to cancel the event if needed use: &lt;br /&gt;e.ReturnStatus = False&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13984.aspx</link><pubDate>Wed, 16 Nov 2005 14:54:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13984</guid><dc:creator>Rip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13984.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13984</wfw:commentRss><description>I am trying to do something similar but I want to include a confirm dialog box to allow the user to cancel the population if they change their mind.  What should happen is the user checks a check box and a number of text boxes are filled with "0".  If they uncheck the box the fields should be empty.  I am having trouble getting this work correctly.  I have your book Patrick so if there is a section in it that will help please point me in that direction.&lt;br /&gt;&lt;br /&gt;Richard T. Henry&lt;br /&gt;Lewisberry, PA, USA&lt;br /&gt;riphenry@gmail.com</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13983.aspx</link><pubDate>Wed, 16 Nov 2005 07:02:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13983</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13983.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13983</wfw:commentRss><description>How about our book? &lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13982.aspx</link><pubDate>Tue, 15 Nov 2005 19:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13982</guid><dc:creator>mdsmitty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13982.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13982</wfw:commentRss><description>Thanks Franck&lt;br /&gt;&lt;br /&gt;Any idea where I can get some sample vbscript or vb.net code to try.  &lt;br /&gt;&lt;br /&gt;Thanks again&lt;br /&gt;Smitty</description></item><item><title>Re: Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13981.aspx</link><pubDate>Mon, 14 Nov 2005 22:37:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13981</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13981.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13981</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;It is unlikely that you can handle the logic behind 100 checkboxes with rules (+ it may hit your form performance).  The easiest way is to write code.  Now, depending on what you are trying to do, you could build your schema so that all checkboxes are in one folder.  Next you can catch the OnAfterChange event at that folder level.  This way, as soon as 1 of the 100 checkboxes are clicked, you will be able to manipulate the event to populate your textboxes based on which box was checked/unchecked.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Use check box to populate a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/12678.aspx</link><pubDate>Mon, 14 Nov 2005 20:55:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12678</guid><dc:creator>mdsmitty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12678</wfw:commentRss><description>I have a form with several check boxes (50-100) and a repeating table on a second view.  I want the user to check the check boxes which will populate a text box in a repeating table i.e like a list.  I have seen several posts relating to this but I need a few things clarified if possible:&lt;br /&gt;&lt;br /&gt;Two questions&lt;br /&gt;&lt;br /&gt;1.  Will I need to write code on every check box?&lt;br /&gt;2.  Is there a way to do this without writing code via rules?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Smitty</description></item></channel></rss>