Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 2 of 6 (55 items) < Previous 1 2 3 4 5 Next > ... Last » Re: Adding Nodes Hi Jimmy, That's a great idea and I will certainly use it in my next form, but this form has already been used for thousands of submissions and is parsed by hundreds of lines of code in several locations so making a change like that would not be possible. As there are elements after my:Order in my:myFields I am concerned that deleting the ... Posted to Code (Forum) by ben.oates on 03-30-2009 Re: Adding Nodes Ok - this is the basic path users take. Please forgive me if I cover any unnecessary ground or miss anything. At the first screen, they choose the hardware that they want from a data connection which is entered into a repeating list with an identifier called HID - it has various other fields that are mostly pulled from the data ... Posted to Code (Forum) by ben.oates on 03-30-2009 Re: Need to automatically add row to a repeating table if <some filed is not blank> [quote user="Jimmy"] You can add a row to a repeating table with the following single line of code: XDocument.View.ExecuteAction("xCollection::insert", "group2_1") just replace group2_1 with the XMLToEdit value found on the Advanced tab of the repeating table's properties. [/quote] When I try this I ... Posted to General (Forum) by ben.oates on 03-03-2009 Re: Adding Nodes Just a thought... Could it be because the system is trying to add the object in the wrong place? It wouldn't make sense to me really, but it's the only thing I can think of. <my:Order return="false"> <my:HWID /> <my:SWID /> <my:UID /> <my:Info ... Posted to Code (Forum) by ben.oates on 03-03-2009 Re: Adding Nodes Hi Hilary, I do I'm afraid, except it says that {http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-08T16:31:56}UID is unexpected. I also tried the following: Sub addDomElement(objParentNode, strName, strValue) Set existingObjNode = objParentNode.selectNodes(strName) If existingObjNode.length > 0 Then Set existingObjNode ... Posted to Code (Forum) by ben.oates on 03-03-2009 Adding Nodes Hi all, I am literally teraring hair out as I have been googling and attempting numerous variations of this code for quite some time now. If I createElement, I get this error: Element 'UID' is unexpected according to content model of parent element ... Posted to Code (Forum) by ben.oates on 03-02-2009 Re: Navigating child nodes Hi Hilary, That worked a treat for the single node, but unfortunately, there are three repeating nodes in there that all get added to by this function. Only the one at the bottom allows appendChild to work. From what you said I went hunting for something that inserts XML in a certain place assuming that the DOM is restricting me to ... Posted to Code (Forum) by ben.oates on 08-20-2008 Re: Navigating child nodes They keep us quite effectively locked down around here! It was attached to a previous post: http://www.infopathdev.com/forums/storage/45/31513/ARSR%20Public.xsn Posted to Code (Forum) by ben.oates on 08-19-2008 Re: Navigating child nodes Unfortunately not... the filter stops zip files as well. Did the XSN attached to the previous post work? Posted to Code (Forum) by ben.oates on 08-19-2008 Re: Navigating child nodes Thanks for your e-mail Hilary. Unfortunately, I can not send XSN files out by e-mail. The filter thinks it's ActiveX. I have removed all data connections (potential privacy problems at work), but if you add two users on the user view and click "go forward to order" you will see where the error crops up. Hopefully this will help ... Posted to Code (Forum) by ben.oates on 08-18-2008 Page 2 of 6 (55 items) < Previous 1 2 3 4 5 Next > ... Last » Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.