<?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>New Record and Copy Record</title><link>https://www.infopathdev.com:443/forums/thread/40592.aspx</link><pubDate>Tue, 14 Apr 2009 15:20:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40592</guid><dc:creator>danfountain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40592.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40592</wfw:commentRss><description>&lt;p&gt;Hey all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am new to IP 2003 so bare with me please.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a infopath 2003 form which connects to SQL to store info on all our servers.&amp;nbsp; It can store, and change the information (it queries).&amp;nbsp; All seems to work fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However there are 2 functions i want to be able to do - and dont know how.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Firstly - does anyone know the JS to code a new record button.&amp;nbsp; I know you can just select new record on action, but i want to code it so i can add another line afterwards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Secondly - I want to be able to copy a record, and all sub records to a new record&amp;nbsp;(master and detail).&amp;nbsp; Is this possible?&amp;nbsp; With whatever code i have, i will obviously have to generate a new PK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any direction on either of the above will be great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TIA&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;</description></item></channel></rss>