<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24907.aspx</link><pubDate>Tue, 04 Dec 2007 21:39:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24907</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24907.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24907</wfw:commentRss><description>&lt;p&gt;My guess of what&amp;#39;s going on is that you already have a value in: my:field4. So before you do anything else (before you get all the nodes), you need to clear the value of this field...&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field4&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).text = &amp;quot;&amp;quot;;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24646.aspx</link><pubDate>Thu, 22 Nov 2007 16:15:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24646</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24646</wfw:commentRss><description>&lt;p&gt;After being moved to a different project, i&amp;#39;m back to this again!&lt;/p&gt;
&lt;p&gt;I now have it working, as below:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; CTRL5_5_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNodeList&lt;/font&gt;&lt;font size="2"&gt; nodes = thisXDocument.DOM.selectNodes(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;//*&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;); &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Note: this XPath only accounts for elements, and not attributes.&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;font size="2"&gt; node &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; nodes)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;strOutput += &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;=&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + node.nodeName + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;:&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + node.text;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;font size="2"&gt; myEl = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field4&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;myEl.text = strOutput;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, my output is first, the text from all nodes in myFields, and then, the text from each field in myFields - basically meaning I get the data twice.&lt;/p&gt;
&lt;p&gt;Do you know of a way to only retrieve data from elements, rather than from groups?&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24185.aspx</link><pubDate>Fri, 02 Nov 2007 23:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24185</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24185</wfw:commentRss><description>&lt;p&gt;Glad to help!&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24144.aspx</link><pubDate>Fri, 02 Nov 2007 08:05:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24144</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24144</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Again, many thanks for your help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24129.aspx</link><pubDate>Thu, 01 Nov 2007 16:44:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24129</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24129</wfw:commentRss><description>&lt;p&gt;IXMLDOMNodeList nodes = thisXDocument.DOM.selectNodes(&amp;quot;//*&amp;quot;); // Note: this XPath only accounts for elements, and not attributes.&lt;br /&gt;foreach(IXMLDOMNode node in nodes)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string val = node.text;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do whatever you want with the text value here.&lt;br /&gt;}&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24108.aspx</link><pubDate>Thu, 01 Nov 2007 08:28:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24108</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24108</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Again, thanks for the advice, i&amp;#39;ll download those and give it a go.&lt;/p&gt;
&lt;p&gt;Any tips or links on how to work with the XPath enumeration as well?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24091.aspx</link><pubDate>Wed, 31 Oct 2007 17:20:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24091</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24091.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24091</wfw:commentRss><description>&lt;p&gt;You can use C# with InfoPath 2003. You will need: Visual Studio (Express edition should work), and the InfoPath 2003 Toolkit for Visual Studio .NET (see the InfoPathDev.com homepage for links).&lt;/p&gt;
&lt;p&gt;There are different toolkits depending on which version of Visual Studio you are running. I think the homepage link is expecing 2003 and not 2005.&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24085.aspx</link><pubDate>Wed, 31 Oct 2007 16:54:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24085</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24085</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. &lt;/p&gt;
&lt;p&gt;Yes, you are correct, we just want to place all the text into the one large text box ready for copy and paste. &lt;/p&gt;
&lt;p&gt;I did look into using the JScript environment behind Infopath (I may be wrong, but isn&amp;#39;t infopath 2003 only JScript, not C# etc?) so that when the view loaded, it copied all the elements into the box programatically.&lt;/p&gt;
&lt;p&gt;Trust me, the effort is not an issue, if you could provide me with some pointers of where to start with the programatic side?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not used to JScript at all, and I am willing to learn, but&amp;nbsp;time is not on my side.&lt;/p&gt;
&lt;p&gt;Any Noobie pointers&amp;nbsp;you could share?&lt;/p&gt;
&lt;p&gt;Really, a big thankyou for the reply.&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24083.aspx</link><pubDate>Wed, 31 Oct 2007 16:48:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24083</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24083</wfw:commentRss><description>&lt;p&gt;It sounds like what you want is a view with a single field that can be copied in one transaction.&lt;/p&gt;
&lt;p&gt;Obviously you know you can create a view with all the fields set to readonly, and then the fields can be copied one-by-one... but it sounds like you want one concatenated field.&lt;/p&gt;
&lt;p&gt;Truely, using concat() is not the right answer. However, you could do this using code, selecting every node in the DOM, using the XPath &amp;quot;//*&amp;quot; and then looping through them, getting each value and concatenating into a large string which is then put into a field... or if you are more adventurous, creating your own XHTML document which is then appended to a rich text field.&lt;/p&gt;
&lt;p&gt;My point, however, is that this can be done, but at some cost. You will need to evaluate whether the cost is worth the effort.&lt;/p&gt;</description></item><item><title>Providing Copy &amp; Paste functionality - Can it be done?</title><link>https://www.infopathdev.com:443/forums/thread/24082.aspx</link><pubDate>Wed, 31 Oct 2007 16:11:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24082</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24082</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;A NOOBIE question for you.&lt;/p&gt;
&lt;p&gt;We have a series of infopath forms (hosted on Sharepoint), designed to be firstly completed the customer, and then emailed around various managers seeking approval. At the end of the process, when the form is approved, it is required to be transfered into our Helpdesk system, which is completely standalone.&lt;/p&gt;
&lt;p&gt;The previous system is used by having a text file generated, which the operator opens, and takes the contents, and pastes it into the helpdesk.&lt;/p&gt;
&lt;p&gt;Essentially, all I want to know is, is there an easy way to create a view that allows COPY and PASTE?&lt;/p&gt;
&lt;p&gt;I have seen the export to HTML, which is great, but is quite longwinded and will slow our operators down.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried creating a text box, and setting the default value to concat(&amp;quot;Field = &amp;quot;, field, &amp;quot;, another = &amp;quot;, anotherfield) etc, but this would take FOREVER to do (as the forms are quite big) and doesn&amp;#39;t work with repeating tables.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;</description></item></channel></rss>