<?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: Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18746.aspx</link><pubDate>Fri, 07 Jan 2005 07:39:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18746</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18746</wfw:commentRss><description>Ok so what is the correct way to do that in C#&lt;br /&gt;&lt;br /&gt;What is the syntax for go to the markup &amp;lt;av&amp;gt; (in the secondary data source) locate in:&lt;br /&gt;&amp;lt;source&amp;gt;&lt;br /&gt;&amp;lt;av&amp;gt;toto&amp;lt;/av&amp;gt;&lt;br /&gt;&amp;lt;av&amp;gt;titi&amp;lt;/av&amp;gt;&lt;br /&gt;&amp;lt;av&amp;gt;tata&amp;lt;/av&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/source&amp;gt;&lt;br /&gt;&lt;br /&gt;What I have to write to have the content of this markup?&lt;br /&gt;&lt;br /&gt;thanks for your answer&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18745.aspx</link><pubDate>Wed, 05 Jan 2005 18:27:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18745</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18745</wfw:commentRss><description>Sounds like what you need to do is write some code in your OnLoad function which copies the values from your secondary data source to the main data source.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18744.aspx</link><pubDate>Tue, 04 Jan 2005 07:42:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18744</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18744.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18744</wfw:commentRss><description>hi,&lt;br /&gt;Thanks for your answer, so what I wan't to do is:&lt;br /&gt;&lt;br /&gt;my primary data source contain only 3 field (3 TEXTBOX for the moment) AND I have to populate it with an xml file (that is different every time) my probleme is that i can link my content of secondary data source (my 3 field)to my primary data source for that can be send by mail.&lt;br /&gt;I believe that you understand this time&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;&lt;br /&gt;P.S. Thanks patrick for you little advice about my signature I modify yet. Your signature is exceptional!!!&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think it</description></item><item><title>Re: Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18743.aspx</link><pubDate>Mon, 03 Jan 2005 22:48:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18743</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18743.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18743</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;I'm not sure I understand your question. Are you asking "how we bind the text from a secondary data source to the main DOM"? Or, are you asking "how do we set default data using template.xml"? These are different questions. &lt;br /&gt;&lt;br /&gt;For the first: you can bind a dropdown to your main DOM (data source) and specify a secondary data source for lookup. &lt;br /&gt;&lt;br /&gt;For the second: you can edit the default sample data from within the designer. Go to Tools-&amp;gt;Form Options-&amp;gt;General-&amp;gt;Edit Default Values.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;Patrick&lt;br /&gt;&lt;br /&gt;PS&amp;gt; for your signature, you should probably change "Think it" to "Think about it" but sounds a little threatening if you ask me.&lt;br /&gt;&lt;br /&gt;PPS&amp;gt; for my signature, I'd say something like "life is short, don't forget to inhale"  :)</description></item><item><title>Re: Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18742.aspx</link><pubDate>Mon, 03 Jan 2005 22:45:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18742</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18742</wfw:commentRss><description>Hi. I'm not sure I understand your question... what exactly are you trying to do?&lt;br /&gt;&lt;br /&gt;It sounds like you have a secondary data source that the user enters values into, and you want those values to be in the main data source so that you can send the form (with those values included) via email to someone.&lt;br /&gt;&lt;br /&gt;If this is the case, you need to have some fields in the main data source where these values can go.&lt;br /&gt;&lt;br /&gt;If you need to have these fields in the main data source, then why are they now in a secondary data source?&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Bind secondary data source to primary data source</title><link>https://www.infopathdev.com:443/forums/thread/18715.aspx</link><pubDate>Mon, 03 Jan 2005 13:35:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18715</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18715.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=18715</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have seen all the example that you have made but he has one things that I don't understand. How you do to bind the text contain in the secondary data source for that she go to the primary (save in the template.xml)for that she can be send by the form. Me when I do that my template.xml is empty. I have found a example in Jscript but i have to made my infopath form in C# so...&lt;br /&gt;&lt;br /&gt;I hope you understand! Please I need of this help&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think it</description></item></channel></rss>