<?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: Setting a Boolean Value</title><link>https://www.infopathdev.com:443/forums/thread/24723.aspx</link><pubDate>Tue, 27 Nov 2007 17:11:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24723</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24723</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;can that be done in jscript? I&amp;#39;m trying with:&lt;/p&gt;&lt;p&gt;&amp;nbsp;var vartrue = true;&lt;br /&gt;&amp;nbsp;var listafacturar = XDocument.DOM.selectNodes( &amp;quot;/inv:invoice//my:Control_Obra//my:Capa_Exterior_Obra//my:Capa_Intermedia_Obra//my:Capa_Interior_Obra//my:Facturado[ ../my:Facturar = &amp;#39;&amp;quot; + vartrue + &amp;quot;&amp;#39; ]&amp;quot; );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while( (probando = listafacturar.nextNode()) != null )&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;probando = vartrue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But my:Facturado doesn&amp;#39;t change for the selected nodes. What&amp;#39;s the problem?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a Boolean Value</title><link>https://www.infopathdev.com:443/forums/thread/14840.aspx</link><pubDate>Thu, 26 Oct 2006 15:01:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14840</guid><dc:creator>herb_powell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14840</wfw:commentRss><description>Hi Shiva!  Thanks for you reply - it did the trick :)</description></item><item><title>Re: Setting a Boolean Value</title><link>https://www.infopathdev.com:443/forums/thread/14839.aspx</link><pubDate>Tue, 24 Oct 2006 19:49:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14839</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14839</wfw:commentRss><description>Hi Herb Welcome to the Forums,&lt;br /&gt;&lt;br /&gt;You probably need to remove the xsi:nil attribute. Here is the code:&lt;br /&gt;&lt;br /&gt;IXMLDOMNode FullNameNode = thisXDocument.DOM.selectSingleNode("//my: Full_Name");&lt;br /&gt;removeNil(FullNameNode).text = "true";&lt;br /&gt;&lt;br /&gt;public IXMLDOMNode removeNil(IXMLDOMNode node)&lt;br /&gt;{&lt;br /&gt;	//Determine whether the xsi:nil attribute is set for this&lt;br /&gt;	//element. If so, remove the xsi:nil attributes so that&lt;br /&gt;	//the value can be set.&lt;br /&gt;	if (node.selectSingleNode( "@xsi:nil" ) != null)&lt;br /&gt;		node.selectSingleNode( "@xsi:nil" ).text = "false";				&lt;br /&gt;		&lt;br /&gt;	// return the node for convenience&lt;br /&gt;	return node;&lt;br /&gt;}</description></item><item><title>Setting a Boolean Value</title><link>https://www.infopathdev.com:443/forums/thread/12965.aspx</link><pubDate>Tue, 24 Oct 2006 13:25:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12965</guid><dc:creator>herb_powell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12965</wfw:commentRss><description>Greetings!&lt;br /&gt;&lt;br /&gt;In my form's data source, I have True/False (boolean) value that is not displayed on my form.  I would like to know if it's possible via VBScript or JScript (perhaps in a button's onClick handler) to set this value to either TRUE or FALSE.  I know that it's possible to set the text of a value on a form via something like:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Dim txtFullName : Set txtFullName = XDocument.DOM.selectSingleNode("//my:Full_Name")&lt;br /&gt;txtFullName.text = "John Q. Public"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But I haven't been able to find a way to set a boolean value, and especially one that's not displayed on the form itself.  Thanks in advance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Herb</description></item></channel></rss>