<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23483.aspx</link><pubDate>Fri, 05 Oct 2007 18:42:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23483</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23483</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Stephanie Cantwell:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I am afraid to copy a repeating table (or random number of rows of data) from secondary data source to another DOM will require code.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Stephanie,&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp; I have been trying to code this, but the Object model help and examples are pretty thin.&amp;nbsp; If the table in my main data source is:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre&gt;&amp;lt;AttendanceTable ClassSection=&amp;quot;English 225&amp;quot;&amp;gt;
     &amp;lt;StudentName/&amp;gt;
     &amp;lt;Attended/&amp;gt;
&amp;lt;/AttendanceTable&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;and my secondary data source is:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre&gt;&amp;lt;StudentRecords&amp;gt;
   &amp;lt;StudentName/&amp;gt;
   &amp;lt;CurrentClasses&amp;gt;
      &amp;lt;Class/&amp;gt;
   &amp;lt;/CurrentClasss&amp;gt;
&amp;lt;/StudentRecords&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the objects/methods: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;To get the the student name from the student record where class the class = English 225&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Populate the student name field for each row in the Attendance table&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ren&lt;/p&gt;</description></item><item><title>Re: Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23462.aspx</link><pubDate>Fri, 05 Oct 2007 06:43:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23462</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23462</wfw:commentRss><description>&lt;p&gt;Ren&lt;/p&gt;
&lt;p&gt;It is a limit of the secondary data source that it cannot be used in this way.&amp;nbsp; It is only by making the data source the primary data source that such a scenario could be achieved, unless you code the behaviour.&lt;/p&gt;
&lt;p&gt;Cheers Adam&lt;/p&gt;</description></item><item><title>Re: Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23403.aspx</link><pubDate>Wed, 03 Oct 2007 06:03:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23403</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23403</wfw:commentRss><description>&lt;p&gt;Hi Ren,&lt;/p&gt;
&lt;p&gt;I am afraid to copy a repeating table (or random number of rows of data) from secondary data source to another DOM will require code.&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Stephanie&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;COLOR:#1f497d;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23290.aspx</link><pubDate>Wed, 26 Sep 2007 16:57:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23290</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23290</wfw:commentRss><description>&lt;p&gt;Kalyan,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for the quick reply.&lt;/p&gt;
&lt;p&gt;No, they are text boxes.&amp;nbsp; For example, my secondary source has 4 students in a repeating table.&amp;nbsp; I need to create a new table with the first element in each row filled in with the students&amp;#39; name.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Once again,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ren&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23284.aspx</link><pubDate>Wed, 26 Sep 2007 14:48:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23284</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23284.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23284</wfw:commentRss><description>&lt;p&gt;Hello &lt;/p&gt;
&lt;p&gt;Is your field a drop down and want to show all the names from the XML into the Drop down?&lt;/p&gt;</description></item><item><title>Populating a field in a table from a secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/23281.aspx</link><pubDate>Wed, 26 Sep 2007 13:39:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23281</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23281</wfw:commentRss><description>&lt;p&gt;I have searched and not found exactly what I am looking for:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have an xml file with student data that I am using as a secondary data source.&amp;nbsp; I have a repeating table that I would like to pre-populate the first field with the&amp;nbsp;students&amp;#39; names.&amp;nbsp; Is there a way to do this wth out code?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ren&lt;/p&gt;</description></item></channel></rss>