<?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: JScript Copy &amp;amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/11440.aspx</link><pubDate>Fri, 13 Apr 2007 08:29:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11440</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11440</wfw:commentRss><description>Hi edove,&lt;br /&gt;&lt;br /&gt;try this logic, Take the node of the section and create a DOM with that.Take the DOM in another view and traverse the DOM to child nodes and take the values of the nodes and paste it in what ever the fields you required.&lt;br /&gt;&lt;br /&gt;Hope this will help you.&lt;br /&gt;&lt;br /&gt;If you still have problem, Please let me know.</description></item><item><title>Re: JScript Copy &amp;amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/11439.aspx</link><pubDate>Wed, 11 Apr 2007 13:22:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11439</guid><dc:creator>edove</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11439</wfw:commentRss><description>Hi. &lt;br /&gt;&lt;br /&gt;Thanks but I really need to copy the whole table or even the whole section in one go.&lt;br /&gt;&lt;br /&gt;I maybe need to explain a bit better..&lt;br /&gt;&lt;br /&gt;I have an optional section. Inside that section is a table. One row of the table contains static values, the row beneath contains a repeating table.&lt;br /&gt;&lt;br /&gt;Users are going to add additional rows to the repeating table, fill out all of the fields and at some point I want them to be able to click a button and copy the whole section into another view. It can be into a rich text field.&lt;br /&gt;&lt;br /&gt;I know that I can do this by going to the optional section, clicking on the arrow and selecting "copy", then paste it into the field but I want this to happen automatically.</description></item><item><title>Re: JScript Copy &amp;amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/11438.aspx</link><pubDate>Wed, 11 Apr 2007 13:16:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11438</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11438.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11438</wfw:commentRss><description>Hi edove&lt;br /&gt;&lt;br /&gt;you need to add a button and write code on 'OnClick function'&lt;br /&gt;&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;    var group1Node = XDocument.DOM.selectSingleNode("&amp;lt;Xpath of Source section&amp;gt;");&lt;br /&gt;var group2Node = XDocument.DOM.selectSingleNode("&amp;lt;Xpath of destination section&amp;gt;");&lt;br /&gt;&lt;br /&gt;group2Node.selectSingleNode("&amp;lt;my:field1 name in destination section&amp;gt;").text = group1Node.selectSingleNode("&amp;lt;my:field1 name in source section&amp;gt;").text;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;you have to write selectSigleNode code line for all the fields present in a section.&lt;br /&gt;When the destination section is in different view then add this code line in 'OnClick function first and then write the above code &lt;br /&gt;&lt;br /&gt;XDocument.View.SwitchView("view2");</description></item><item><title>JScript Copy &amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/6182.aspx</link><pubDate>Wed, 11 Apr 2007 10:19:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6182</guid><dc:creator>edove</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6182.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6182</wfw:commentRss><description>I have a section on an infopath form and I would like to use jscript to copy the section and paste it to somewhere else in the form. A rich text field for example.&lt;br /&gt;&lt;br /&gt;I know I can use the section menu to copy and paste but I want to do it with code when the user presses a button. Can anyone help?&lt;br /&gt;&lt;br /&gt;I thought maybe I could use ExecuteAction to do it, but not sure how.</description></item></channel></rss>