<?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: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13314.aspx</link><pubDate>Tue, 05 Jul 2005 21:47:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13314</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13314.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13314</wfw:commentRss><description>I am reading the required Node which has to be inserted in to "oSampleNode" and appending it to the Parent of the node as many times as quantity.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13313.aspx</link><pubDate>Sat, 02 Jul 2005 17:57:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13313</guid><dc:creator>craigp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13313</wfw:commentRss><description>OKay, sorry for being a pain in the rear here, but can you explain this a little to me.  I am very new to XML and Infopath.&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13312.aspx</link><pubDate>Fri, 01 Jul 2005 14:44:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13312</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13312.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13312</wfw:commentRss><description>Hi Sorry for being late, here is the code.&lt;br /&gt;&lt;br /&gt;In the following code i took data from sampledata.xml, which will have a copy of template.xml. From that i took the Empty textbox, cloned it and appended it to the container of the textbox as many number of times as quantity.&lt;br /&gt;&lt;br /&gt;[InfoPathEventHandler(MatchPath="/my:myFields/my:quatity", EventType=InfoPathEventType.OnAfterChange)]&lt;br /&gt;public void field1_OnAfterChange(DataDOMEvent e)&lt;br /&gt;{	&lt;br /&gt;if (e.IsUndoRedo)&lt;br /&gt;return;&lt;br /&gt;int quantity = Convert.ToInt32(e.NewValue.ToString());&lt;br /&gt;IXMLDOMDocument2 oSampleData = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;oSampleData.async = false;&lt;br /&gt;oSampleData.load("sampledata.xml");&lt;br /&gt;oSampleData.setProperty("SelectionNamespaces", "xmlns:my=\"http://my\"");&lt;br /&gt;IXMLDOMNode oSampleNode = oSampleData.selectSingleNode("/my:myFields/my:TextBoxNodes/my:TextBoxNode");&lt;br /&gt;IXMLDOMNode oTextBoxsParentNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:TextBoxNodes");&lt;br /&gt;for(int i=0; i &amp;lt; quantity;i++)&lt;br /&gt;{&lt;br /&gt;oTextBoxsParentNode.appendChild(oSampleNode.cloneNode(true));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13311.aspx</link><pubDate>Thu, 30 Jun 2005 21:14:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13311</guid><dc:creator>craigp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13311</wfw:commentRss><description>Can anyone help?  PLEASE!!!</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13310.aspx</link><pubDate>Wed, 29 Jun 2005 22:51:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13310</guid><dc:creator>craigp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13310</wfw:commentRss><description>Is there any examples that you know out there on the web, for doing this?</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13309.aspx</link><pubDate>Wed, 29 Jun 2005 22:17:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13309</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13309.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13309</wfw:commentRss><description>Yes it is posible, you need to write an OnAfterChange event on Quatity field and write code to insert the XML nodes depending the quatity.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13308.aspx</link><pubDate>Wed, 29 Jun 2005 15:50:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13308</guid><dc:creator>craigp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13308</wfw:commentRss><description>Yes the number of textboxes is conditional to the quantity, ie. if they type 4 for the quantity, 4 textboxes will appear.  :)&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/13307.aspx</link><pubDate>Wed, 29 Jun 2005 06:37:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13307</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13307.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13307</wfw:commentRss><description>Hi Craig and welcome to the forum!&lt;br /&gt;How many textboxes do you need to add? Is the number conditional on the quantity added? Should be easy to do.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>receiving log - Creating textboxes</title><link>https://www.infopathdev.com:443/forums/thread/12479.aspx</link><pubDate>Wed, 29 Jun 2005 04:49:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12479</guid><dc:creator>craigp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12479</wfw:commentRss><description>I am trying to create receiving log for when our warehouse guys get in equipment they have to enter a serial # for every item that is received.  I have a textbox for a quantity, and I need to have textboxes added for what ever is entered in the quantity field.  Is this possible and how do I go about doing it?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Craig</description></item></channel></rss>