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 3 (22 items) < Previous 1 2 3 Next > Re: XPathNavigator = this.CreateNavigator(); //-> System.IndexOutOfRangeException: Index was outside the bounds of the array. This works:string login = i.Current.SelectSingleNode("my:AccountId", NamespaceManager) .Value/*.Split('\\')[1]*/; login = login.Substring(login.IndexOf('\\')+1); n.SelectSingleNode("/my:FormRoot/my:RecepientsList", NamespaceManager).SetValue( login ); Posted to Browser Forms (Forum) by ACrush on 12-18-2009 Re: XPathNavigator = this.CreateNavigator(); //-> System.IndexOutOfRangeException: Index was outside the bounds of the array. I have found that the culprit is in the string.Split(char) method. The exception is thrown (but doesn't cancel the actual splitting) if you uncomment the Split part in the following simple sequence:string login = i.Current.SelectSingleNode("my:AccountId", NamespaceManager).Value/*.Split('\\')[1]*/; ... Posted to Browser Forms (Forum) by ACrush on 12-18-2009 string.Split(char)[int] in browser causes System.IndexOutOfRangeException: Index was outside the bounds of the array. I have a browser-enabled form that works in InfoPath and fails with System.IndexOutOfRangeException: Index was outside the bounds of the array. \FormCode.cs:line 36 at Microsoft.Office.InfoPath.Server.SolutionLifetime.XmlEventExternal.<>c__DisplayClass10.<>c__DisplayClass12.b__b() at ... Posted to Browser Forms (Forum) by ACrush on 12-18-2009 Re: Domain Permission Level error Hi. The killer solution is to sign your InfoPath form with a certificate issued by a trusted corporate or public authority and persuade your users to trust you. If you can't, double check your scripted actions (web service calls in OnAfterChange and the like may require Full Trust) and trust level in the Form Settings and include ... Posted to General (Forum) by ACrush on 09-01-2009 Seems like I overcomplicated that one Apparently just attr.nodeValue = "14" should work. Posted to Code (Forum) by ACrush on 01-20-2009 Changing attribute value for an existing element I found some unexpected behaviour while developing my InfoPath 2003 compatible form template with C#. The problem is, I cannot change an attribute value on an existing element with the following code: Initial element <my:Employee xmlns:my="..." my:ID="" my:FirstName="Jane" ... Posted to Code (Forum) by ACrush on 01-20-2009 Re: Infopath et Web Service (GetListItems) Salut. Tu as qch comme <enfant/> <enfant/> au lieu de <parent> <enfant/> <enfant/> </parent> Ou le seul <parent/> et l'element qui te manque Posted to Français (French) (Forum) by ACrush on 12-22-2008 Re: Programmatically Setting Date Picker Empty Yes, xsi:nil='true' or '1' is the one and only. see the XML Schema standard for confirmation Posted to General (Forum) by ACrush on 12-11-2008 nil and the Changing event OK, but when you have to remove or reapply the xsi:nil attribute in a Changing event handler, the Changing event fires the other time. Is there anything like DisableEventFiring around to help with that? Posted to Code (Forum) by ACrush on 12-11-2008 Re: A lightweight approach to retrieving the solutionVersion attribute from the xsn? Jimmy, thanks. Myself as soon as I quit trying to find an InfoPath-specific solution, I turned to this very CabLib which, according to the description, is quite impressive. I'll post a snippet of the eventual solution unless I forget to. Posted to Code (Forum) by ACrush on 12-08-2008 Page 2 of 3 (22 items) < Previous 1 2 3 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.