<?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: Getting structure of web service</title><link>https://www.infopathdev.com:443/forums/thread/55947.aspx</link><pubDate>Thu, 17 Jun 2010 06:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55947</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55947</wfw:commentRss><description>&lt;p&gt;Thank you for the reply!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I guess I forgot to mention that I am running InfoPath 2007 in the 2003 object model.&amp;nbsp;&amp;nbsp;&amp;nbsp; I am unaware of an OpenFileFromPackage function in 2003 OM.&amp;nbsp;&amp;nbsp; Is there such a beast?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again!&lt;/p&gt;</description></item><item><title>Re: Getting structure of web service</title><link>https://www.infopathdev.com:443/forums/thread/55946.aspx</link><pubDate>Thu, 17 Jun 2010 05:44:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55946</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55946</wfw:commentRss><description>&lt;p&gt;The template file sampledata.xml should contain sample XML of your main and secondary data sources.&amp;nbsp; You can access this at runtime using &lt;strong&gt;this.Template.OpenFileFromPackage()&lt;/strong&gt;, access the part that you need to clone, and clone it as much as you want.&lt;/p&gt;
&lt;p&gt;A simpler alternative is to use qRules, which can accomplish all of this with one command:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Insert /dsname=&lt;strong&gt;&lt;em&gt;&lt;u&gt;DataSourceName&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; /parent=&lt;strong&gt;&lt;em&gt;&lt;u&gt;/path/to/repeating/node/parent&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; /child=&lt;strong&gt;&lt;em&gt;&lt;u&gt;RepeatingNode&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; /count=&lt;strong&gt;&lt;em&gt;&lt;u&gt;numToInsert&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Getting structure of web service</title><link>https://www.infopathdev.com:443/forums/thread/55944.aspx</link><pubDate>Wed, 16 Jun 2010 23:14:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55944</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55944</wfw:commentRss><description>&lt;p&gt;I have a web service function in a secondary data source that returns no rows of data, but I want to add a row to&amp;nbsp;the data source result set&amp;nbsp;programmatically using the structure that InfoPath sees when it queries the WSDL.&amp;nbsp; It would be easy if it returned a row, but since nothing comes back, I have no data to reference.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does anyone have any ideas on how this can be done?&amp;nbsp;&amp;nbsp;&amp;nbsp; Using the schema at runtime somehow?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: It needs to be generic enough that I can have it go against any secondary data source definition (i.e. not hard coded CreateElement and AppendChild functions).&lt;/p&gt;</description></item></channel></rss>