<?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: Edit null fields in a InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/9945.aspx</link><pubDate>Wed, 21 Jun 2006 23:25:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9945</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9945</wfw:commentRss><description>Sounds like an awesome workaround, I'm glad you figured it out!</description></item><item><title>Re: Edit null fields in a InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/9944.aspx</link><pubDate>Wed, 21 Jun 2006 13:39:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9944</guid><dc:creator>Johny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9944</wfw:commentRss><description>Hi Matt Faus,&lt;br /&gt;I have found this solution:&lt;br /&gt;- First of all, I do a clone from tArqueo dataset (tArqueoString)&lt;br /&gt;- Next, I convert all of columns from tArqueoString to string&lt;br /&gt;- Now, I fill tArqueo dataset with the adapter&lt;br /&gt;- Finally, I cross the tArqueo dataset row by row and I add a new row to tArqueoString. For each column, I copy its values. In case of numbers, I use Convert.ToString with NumberFormatInfo as provider. In case of dates, I use date1.ToString(dtfi.SortableDateTimePattern) when dtfi is a DateTimeFormatInfo.&lt;br /&gt;&lt;br /&gt;With this solution I "deceive" to WriteXml method</description></item><item><title>Re: Edit null fields in a InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/9943.aspx</link><pubDate>Wed, 21 Jun 2006 06:31:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9943</guid><dc:creator>Johny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9943</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 Matt Faus&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;but if you can't do that you can write code in the form that looks for these missing nodes and adds them in with a blank value so that you can edit them.&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know how it goes and if have any other questions feel free.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;Thank you very much, I will do it. I think that is the best solution&lt;br /&gt;&lt;br /&gt;Greetings</description></item><item><title>Re: Edit null fields in a InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/9942.aspx</link><pubDate>Wed, 21 Jun 2006 02:26:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9942</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9942</wfw:commentRss><description>What is doing the serialization from the DB into the XML? I think this should not be elimnating the nodes from the schema, but just doing a /&amp;gt; ending to the element.  I would check into fixing it at the serialization side, but if you can't do that you can write code in the form that looks for these missing nodes and adds them in with a blank value so that you can edit them.&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know how it goes and if have any other questions feel free.</description></item><item><title>Edit null fields in a InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/5668.aspx</link><pubDate>Mon, 19 Jun 2006 08:35:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5668</guid><dc:creator>Johny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5668</wfw:commentRss><description>I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as empty elements in the XML to can edit the field in InfoPath.&lt;br /&gt;&lt;br /&gt;If the field isn't present in XML I can't edit it in InfoPath.&lt;br /&gt;&lt;br /&gt;I have this code:&lt;br /&gt;&lt;br /&gt;            this.t_ARQUEOTableAdapter.Fill(this.tArqueo.T_ARQUEO);&lt;br /&gt;            string myForm = @"C:\Documents and Settings\Johny\My documents\Visual Studio 2005\Projects\Arqueo\IP_tArqueo\manifest.xsf";&lt;br /&gt;            System.IO.MemoryStream stream1 = new System.IO.MemoryStream();&lt;br /&gt;            tArqueo.WriteXml(stream1);&lt;br /&gt;            fcInfoPath.NewFromFormTemplate(myForm, stream1, XmlFormOpenMode.Default);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Where fcInfoPath is a Microsoft.Office.InfoPath.FormControl&lt;br /&gt;&lt;br /&gt;How to do that ?&lt;br /&gt;&lt;br /&gt;Thank you very much&lt;br /&gt;Johny</description></item></channel></rss>