<?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: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8853.aspx</link><pubDate>Fri, 20 Jan 2006 14:54:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8853</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8853</wfw:commentRss><description>Hi again,&lt;br /&gt;&lt;br /&gt;and thx for all your help. I already tried almost all possibilities setting the values of the check box. I guess not the one you mentioned right now.&lt;br /&gt;BUT right in that moment I found out that if I use your code you posted before&lt;br /&gt;&lt;br /&gt;if(nodeL.text == "true")&lt;br /&gt;nodeL.text = "false";&lt;br /&gt;&lt;br /&gt;just like this in the OnSwitchView event without asking&lt;br /&gt;if(thisXDocument.View.Name == "Layout Team View")&lt;br /&gt;it works so i guess I am gonna go for that solution. I am just not sure if that is gonna destroy some of my logic but if then I still can come back to your last posting.&lt;br /&gt;Thx&lt;br /&gt;&lt;br /&gt;Listen to Motörhead cos they play Rock'n Roll :)</description></item><item><title>Re: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8852.aspx</link><pubDate>Fri, 20 Jan 2006 14:40:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8852</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8852</wfw:commentRss><description>OK, I think I found your problem.  I think the node that your checkbox is referencing is a text node. This will mean that the value of your checkbox will be different than the boolean true/false.&lt;br /&gt;&lt;br /&gt;1) Double-click on the checkbox&lt;br /&gt;2) Notice the "Value when checked" and "Value when cleared" fields&lt;br /&gt;3) Use these values in your code OR select Boolean from the data type drop-down list&lt;br /&gt;&lt;br /&gt;I made a checkbox tied to a text node and the default values were "yes" and "no". I hope this helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8851.aspx</link><pubDate>Fri, 20 Jan 2006 09:49:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8851</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8851</wfw:commentRss><description>Hi Faus,&lt;br /&gt;&lt;br /&gt;Ok to get more concrete.&lt;br /&gt;&lt;br /&gt;I have one View Appliaction Team and one Layout Team view. Just as short info my document is integrated into K2 workflow.&lt;br /&gt;I have a check box on the App.Team view cbLayout. If this one is checked the process follows the line rule for the Layout Team.&lt;br /&gt;Also I have an OnSwitchView Event (C# code by the way)&lt;br /&gt;As you posted I do the following:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMNode nodeL				=	thisXDocument.DOM.selectSingleNode("my:myFields/my:cbLayout");&lt;br /&gt;&lt;br /&gt;if(thisXDocument.View.ToString() == "Layout Team View")&lt;br /&gt;{&lt;br /&gt;if(nodeL.text == "true")&lt;br /&gt;nodeL.text = "false";&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;But when i switch between the views the checkbox stay checked ALL the time.</description></item><item><title>Re: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8850.aspx</link><pubDate>Thu, 19 Jan 2006 16:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8850</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8850</wfw:commentRss><description>I just ran the following code in the OnClick of a button and the button behaved as if I was actually clicking the checkbox. What language are you using?&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;function CTRL2_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	var check = XDocument.DOM.selectSingleNode( "//my:field1" );&lt;br /&gt;	&lt;br /&gt;	if( check.text == "true" )&lt;br /&gt;		check.text = "false";&lt;br /&gt;	else&lt;br /&gt;		check.text = "true";&lt;br /&gt;		&lt;br /&gt;	//XDocument.UI.Alert( "\"" + check.text + "\"" )&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8849.aspx</link><pubDate>Thu, 19 Jan 2006 12:22:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8849</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8849</wfw:commentRss><description>Ok,&lt;br /&gt;&lt;br /&gt;thx. But actually I would like to do it programmatically but somehow I just cannot change the value of my checkbox.&lt;br /&gt;&lt;br /&gt;I tried:&lt;br /&gt;&lt;br /&gt;nodeCheckbox.nodeValue = false;&lt;br /&gt;nodeCheckbox.text = "false";&lt;br /&gt;Actually all different constalations but no....&lt;br /&gt;&lt;br /&gt;Listen to Motörhead cos they play Rock'n Roll :)</description></item><item><title>Re: Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/8848.aspx</link><pubDate>Thu, 19 Jan 2006 11:59:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8848</guid><dc:creator>sureshreddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8848</wfw:commentRss><description>Hi,&lt;br /&gt; Please follow the steps below &lt;br /&gt;&lt;br /&gt;1.	Drag a check box and a button &lt;br /&gt;2.	Create a new view, Copy the check box from the default view    and paste it in the new view&lt;br /&gt;3. In the default view Double-Click on the Button&lt;br /&gt;4.  Add Rule One: click on Add and click on add actions button.&lt;br /&gt;5. Select “Set field value” in Action dropdown&lt;br /&gt;6. Select field in field text box and select “false” in Value text box.&lt;br /&gt;7. Add Rule two: switch views&lt;br /&gt;8. Click ok and preview the form.&lt;br /&gt;&lt;br /&gt;I hope this helps you&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;suresh&lt;br /&gt;Infopath Dev&lt;br /&gt;India</description></item><item><title>Checkbox</title><link>https://www.infopathdev.com:443/forums/thread/5286.aspx</link><pubDate>Thu, 19 Jan 2006 10:17:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5286</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5286</wfw:commentRss><description>Hmm,&lt;br /&gt;&lt;br /&gt;i don't know what is wrong. Somehow it just doesn't work.&lt;br /&gt;I want to set the value of a checkbox form true to false (uncheck the box) in a change view event.&lt;br /&gt;How can I do that. Actually it shouldn't be that big of a task ?&lt;br /&gt;&lt;br /&gt;Thx&lt;br /&gt;&lt;br /&gt;Listen to Motörhead cos they play Rock'n Roll :)</description></item></channel></rss>