<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62425.aspx</link><pubDate>Mon, 20 Dec 2010 13:09:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62425</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62425</wfw:commentRss><description>Hi, so ... I am back :)
I had some troubles with our production SP server, so the give me access to development server, where I can play.
Now it is not throwing any errors, but it is not working properly.&lt;br /&gt;&lt;br /&gt;
In Drop-Down list named Title works everything fine. It is loading values from field in SP List.&lt;br /&gt;
In RTF Body it is worse. Here is formula from Default Value:&lt;br /&gt;
&lt;b&gt;xdXDocument:GetDOM(&amp;quot;MeetingTypes&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Body[xdXDocument:get-DOM()/my:myFields/my:Title = xdXDocument:GetDOM(&amp;quot;MeetingTypes&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title]&lt;/b&gt;&lt;br /&gt;
To Code editor I added this code:&lt;br /&gt;
Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup&lt;br /&gt;
            AddHandler EventManager.XmlEvents(&amp;quot;/my:myFields/my:Title&amp;quot;).Changed, AddressOf Type_Changed&lt;br /&gt;
        End Sub&lt;br /&gt;&lt;br /&gt;

        Public Sub Type_Changed(ByVal sender As Object, ByVal e As XmlEventArgs)&lt;br /&gt;
            Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()&lt;br /&gt;
            Dim xhtmlRTFField As String = domNav.SelectSingleNode(&amp;quot;//my:Body&amp;quot;, NamespaceManager).InnerXml&lt;br /&gt;
        End Sub&lt;br /&gt;&lt;br /&gt;

But when I publish this and start it, I can select some value from rows in SP List, but to body it will insert value from Body column (from SP List) from first row. And it is not formated. &lt;br /&gt;
&lt;br /&gt;
Do you know, where should be problem? Thanks</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62272.aspx</link><pubDate>Tue, 14 Dec 2010 08:51:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62272</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62272.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62272</wfw:commentRss><description>Here is what I need:
http://imgur.com/XbVSF.png
To choose in dropdown menu some title from list and to fill in Body from list with already formated text. No big deal, this should be default behavior :/
&lt;br /&gt;&lt;br /&gt;
Here is Formula of body:&lt;br /&gt;
xdXDocument:GetDOM(&amp;quot;MeetingTypes&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:MeetingTypes/@Body[xdXDocument:get-DOM()/my:myFields/my:Type = ../@Title]
&lt;br /&gt;
And this formula I cant verify: Function &amp;#39;GetDOM&amp;#39; did not return a vaule, or it returned a value that cannot be converted to an XSL data type &lt;br /&gt;
How can I know which of this it is?&lt;br /&gt;&lt;br /&gt;
And here is VB code:
&lt;br /&gt;
        Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup&lt;br /&gt;
            AddHandler EventManager.XmlEvents(&amp;quot;/my:myFields/my:Type&amp;quot;).Changed, AddressOf Type_Changed&lt;br /&gt;
        End Sub&lt;br /&gt;
        Public Sub Type_Changed(ByVal sender As Object, ByVal e As XmlEventArgs)&lt;br /&gt;
            Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()&lt;br /&gt;
            Dim xhtmlRTFField As String = domNav.SelectSingleNode(&amp;quot;//my:Body&amp;quot;, NamespaceManager).InnerXml&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62261.aspx</link><pubDate>Mon, 13 Dec 2010 18:41:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62261</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62261.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62261</wfw:commentRss><description>&lt;p&gt;Hi, I don&amp;#39;t know exactly what you want to do on you form, in my case when I select on a drop down wich is bind to a sharepoint list I set some RT value to my Infopath Field. So I set an &amp;quot;On Changed&amp;quot; event on my drop down field and I usesome code to populate my RT field.&lt;/p&gt;</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62220.aspx</link><pubDate>Mon, 13 Dec 2010 07:01:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62220</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62220</wfw:commentRss><description>Ok, here I am. The thing is, where exactly put this code and what should I do, with this string (xhtmlRTFField)?:
&lt;br /&gt;&lt;br /&gt;
If you have a Rich Text Box control named rtfField on an InfoPath form template and would like to get the XHTML code for this field and store it in a string variable named xhtmlRTFField, you could use the C# code:
&lt;br /&gt;&lt;br /&gt;
XPathNavigator domNav = MainDataSource.CreateNavigator();&lt;br /&gt;
string xhtmlRTFField = domNav.SelectSingleNode(&amp;quot;//my:rtfField&amp;quot;, NamespaceManager).InnerXml;
&lt;br /&gt;&lt;br /&gt;
I am totaly lost :/. I do some programing, but here, I am lost.
&lt;br /&gt;&lt;br /&gt;
And another thing, what have to be allowed on server (or anywhere), that this code will be accepted (if it is required).
&lt;br /&gt;
Thanks a LOT</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62176.aspx</link><pubDate>Fri, 10 Dec 2010 15:50:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62176</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62176</wfw:commentRss><description>Thanks, this is what I meant.
I dont know where to put this code. Now I am not near computer, so on Monday, I am back, and hope, that we can make it :)
So, have a nice weekend ;)</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62173.aspx</link><pubDate>Fri, 10 Dec 2010 15:30:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62173</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62173</wfw:commentRss><description>&lt;p&gt;Ok, I try to explain it first you have to strore on your Sharepoint field your xhtml code in plain text &lt;/p&gt;
&lt;p&gt;ie:&amp;lt;div&amp;gt;&amp;lt;b&amp;gt;My text&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt; &lt;/p&gt;
&lt;p&gt;After that you can use this to set a Rich text field programatically. here a post will explain that :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/infopath2007/how-to-programmatically-get-set-xhtml-rich-text-infopath.htm"&gt;http://www.bizsupportonline.net/infopath2007/how-to-programmatically-get-set-xhtml-rich-text-infopath.htm&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62170.aspx</link><pubDate>Fri, 10 Dec 2010 15:14:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62170</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62170</wfw:commentRss><description>Hmm, I thaught it. So, lets try the &amp;quot;code&amp;quot; way :)
Can you please try to explain it to me detaily? A founded something but I am not cleverer. :/</description></item><item><title>Re: Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62166.aspx</link><pubDate>Fri, 10 Dec 2010 14:52:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62166</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62166</wfw:commentRss><description>&lt;p&gt;Hi, by defaut you can&amp;#39;t get rich text from Sharepoint with a data connection as you see it&amp;#39;s just give you a field as plain text. I know some trick for that but it requires codes.&lt;/p&gt;</description></item><item><title>Lost of RTF fomatting</title><link>https://www.infopathdev.com:443/forums/thread/62159.aspx</link><pubDate>Fri, 10 Dec 2010 11:40:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62159</guid><dc:creator>pavelbacka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=62159</wfw:commentRss><description>Hi,
I am totally beginner, so here is the issue.
I tried it do it in 2007 version, but it didnt worked, so I hoped, that in 2010 it will, but .... no. I have one form, where I am putting data from the list, where I created RTF field and somehow formated text in this field (column).
But after I transfer it into form, formatting will disappear. I dont know, what to do, please give me some advice.
The thing is, that I most probably cant write code, but if it is only option, maybe I can talk to my boss.

Thanks a lot.</description></item></channel></rss>