<?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: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36861.aspx</link><pubDate>Fri, 09 Jan 2009 12:27:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36861</guid><dc:creator>jayant.sharma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36861</wfw:commentRss><description>&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36854.aspx</link><pubDate>Fri, 09 Jan 2009 12:04:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36854</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36854</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you want to set a value to node of type whole number, date, time, decimal and date and time then you have to set the nil value false. Use the following code lines to set nil to true to the node.&lt;/p&gt;
&lt;p&gt;if (node.GetAttribute(&amp;quot;nil&amp;quot;, &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;) != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if ((node.Value).Length != 0)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;node.SetValue(String.Empty);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (node.MoveToAttribute(&amp;quot;nil&amp;quot;, &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;node.DeleteSelf();&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;// Create xsi:nil attribute with the proper namespace.&lt;/p&gt;
&lt;p&gt;node.CreateAttribute(&amp;quot;xsi&amp;quot;, &amp;quot;nil&amp;quot;, &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;, &amp;quot;true&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36838.aspx</link><pubDate>Fri, 09 Jan 2009 07:23:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36838</guid><dc:creator>jayant.sharma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36838</wfw:commentRss><description>&lt;p&gt;ya exactly, I want to set nillable back to the button. I want to know in which situation we have to set it back. means in which condion we have to set nillable false and true...&lt;/p&gt;
&lt;p&gt;Please see this link&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://www.sharepointblogs.com/dooke/archive/2007/08/14/the-xsi-nil-attribute-the-correct-way.aspx"&gt;http://www.sharepointblogs.com/dooke/archive/2007/08/14/the-xsi-nil-attribute-the-correct-way.aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;and clerify me the condition in which we have to apply the nillable false&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36836.aspx</link><pubDate>Fri, 09 Jan 2009 06:58:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36836</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36836</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want to set the nillable back on the button click or any other case?&lt;/p&gt;
&lt;p&gt;Can you give more details about this.&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36835.aspx</link><pubDate>Fri, 09 Jan 2009 06:56:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36835</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36835</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Nillable attribute to true is set when the text box data type is numeric and the data in it&amp;nbsp;is empty.&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36826.aspx</link><pubDate>Fri, 09 Jan 2009 04:36:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36826</guid><dc:creator>jayant.sharma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36826</wfw:commentRss><description>&lt;p&gt;A Lot of Thanks... you have solved my big problem...&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;there any condition&amp;nbsp;when we&amp;nbsp;have to reinsert the nillable back to the node. In which case we have to set the nillable attribute to true.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36764.aspx</link><pubDate>Thu, 08 Jan 2009 12:10:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36764</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36764</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try below code.&lt;/p&gt;
&lt;p&gt;XPathNavigator root = MainDataSource.CreateNavigator();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 10; // &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; XPathNavigator test = root.SelectSingleNode(&amp;quot;/my:myFields/my:field6&amp;quot;, this.NamespaceManager);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.SetValue(Convert.ToString(i));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But you need to change the Textbox field as string. Otherwise you will get schema validation errors.&lt;/p&gt;</description></item><item><title>Re: Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36763.aspx</link><pubDate>Thu, 08 Jan 2009 12:09:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36763</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36763</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use the following code lines.&lt;/p&gt;
&lt;p&gt;XPathNavigator root = MainDataSource.CreateNavigator();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;object newValue = 10; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator node = root.SelectSingleNode(&amp;quot;/my:myFields/my:field11&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (node == null || newValue == null)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;return;&lt;/p&gt;
&lt;p&gt;string value = newValue.ToString();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;// The xsi:nil needs to be removed before we set the value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if ((node.NodeType != XPathNodeType.Attribute) &amp;amp;&amp;amp; (value.Length != 0))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((node != null))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;if (node.MoveToAttribute(&amp;quot;nil&amp;quot;, &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;))&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;node.DeleteSelf();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;node.SetValue(value);&lt;/p&gt;</description></item><item><title>Programmatically bind the textbox to Numeric data...</title><link>https://www.infopathdev.com:443/forums/thread/36760.aspx</link><pubDate>Thu, 08 Jan 2009 11:02:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36760</guid><dc:creator>jayant.sharma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36760</wfw:commentRss><description>&lt;p&gt;I have a text Box whose DataType is set to Whole Number. Now I want to set this textbox programmatically. &lt;/p&gt;
&lt;p&gt;The Problem is the SetValue() takes only the string argument. Is there any other method which return whole number or any other datatype. So that Programatically I can bind it the Controls of Different Data types.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; root = MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;int i=10; //&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;root.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field6&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#800000"&gt;// /my:myFields/my:field6 ----&amp;gt; This is Whole Number Data type.I have to set i=10 to it&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#800000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#800000"&gt;Please Help, Thanks in Advance&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#800000"&gt;Jayant Sharma&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>