<?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: Generating multiple local datasources.</title><link>https://www.infopathdev.com:443/forums/thread/62713.aspx</link><pubDate>Mon, 03 Jan 2011 16:54:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62713</guid><dc:creator>theF10man</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62713</wfw:commentRss><description>&lt;p&gt;I just learned from one of the developers I work with, that InfoPath 2010 allows for datatype copy+paste.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, i guess this is really only useful for 2007/2003 users.&lt;/p&gt;</description></item><item><title>Generating multiple local datasources.</title><link>https://www.infopathdev.com:443/forums/thread/62682.aspx</link><pubDate>Thu, 30 Dec 2010 21:53:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62682</guid><dc:creator>theF10man</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62682</wfw:commentRss><description>&lt;p&gt;I was getting a little tired of manually adding datasources and when you have a form that needs over 100 datasources it can take a long time and get very repetitive trying to add them manually.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, I wrote a script to do it for me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The original script was 10x more primitive than this one, but I spent today cleaning it up for a typical use user by adding interfaces and input checks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Simply export your form as source files, point the script to the directory you exported the infopath source to and enter in the asked information.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This was tested on Infopath 2007. I haven&amp;#39;t had a lot of time to try every datatype, but Boolean did get mad when I didn&amp;#39;t add the nilable parameter to the line, so I fixed that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is a very rough script and I haven&amp;#39;t had a lot of time to sand out the edges, but it should work with relative ease.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mediafire.com/?q7e2ninae534ikc"&gt;http://www.mediafire.com/?q7e2ninae534ikc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please let me know any bugs/your comments/thoughts on this script.&lt;/p&gt;</description></item></channel></rss>