Search - InfoPath Dev

InfoPath Dev

Search

Page 235 of 259 (2583 items) « First ... < Previous 233 234 235 236 237 Next > ... Last »
  • Re: referencing data from repeating sections

    It looks like you still have filters on both repeating sections in the TOC. Once the filters are removed, the default value of TOC/TOCgroup/AutoNumber should be: count(../preceding-sibling::my:TOCgroup/my:AutoNumber) + count(../preceding-sibling::my:TOCgroup/my:group2/my:field1) + 1
    Posted to Newbie Questions (Forum) by Jimmy on 02-19-2009
  • Re: Complex Formula in Function Box

    It looks like you are missing an end-parenthesis right before the div.
    Posted to General (Forum) by Jimmy on 02-19-2009
  • Re: Programmatically read all nodes in List Box

    If the listbox is already being populated from the SharePoint list, then there is no need to add any extra XML.&nbsp; The data is already there.&nbsp; You just need to have your code access the values from your secondary data connection instead of the ListBox&#39;s bound node.&nbsp; If you&#39;re unsure how to do this I can show you sometime ...
    Posted to Newbie Questions (Forum) by Jimmy on 02-19-2009
  • Re: Data validation: Set as required

    There are a number of different ways that a field can be set as &quot;required.&quot; Some are set in the schema (.xsd) file.&nbsp; If a field must be present it will have its minOccurs attribute set to 1 instead of 0. If a string type is set as &quot;cannot be blank,&quot; it will be set as type requiredString instead of xsd:string, and ...
    Posted to General (Forum) by Jimmy on 02-19-2009
  • Re: Programmatically read all nodes in List Box

    What are you using as the data source for the values in the list box?&nbsp;&nbsp;Are they values you manually entered in the form designer?&nbsp; In InfoPath the value of a node bound to a list box is the value of the selected values.&nbsp; Since it is an input control I&#39;m sure you will agree that this does make sense. If you want to also ...
    Posted to Newbie Questions (Forum) by Jimmy on 02-18-2009
  • Re: referencing data from repeating sections

    I&#39;m a bit confused about what you are trying to do on the TOC page.&nbsp; You have a filter set to only display rows where SectionTitle is equal to &quot;Administrative Services&quot;, but you are allowing users to insert rows and select the SectionTitle from a dropdown box.&nbsp; This is a bit of a contradiction. The reason the numbers are ...
    Posted to Newbie Questions (Forum) by Jimmy on 02-17-2009
  • Re: referencing data from repeating sections

    Please change the default value of DepartmentSection/Services/AutoNumber to: count(../../../preceding-sibling::my:RepeatingServices//my:AutoNumber) + count(../../preceding-sibling::my:DepartmentSection//my:AutoNumber) + count(../preceding-sibling::my:Services//my:AutoNumber) + 1 Change the default value of ...
    Posted to Newbie Questions (Forum) by Jimmy on 02-17-2009
  • Re: Using a text field to populate a Repeating table

    To select the last row (most recently added)&nbsp;in a repeating group, you can use the XPath last() function, so if the path to your repeating group was /my:myFields/my:group1/my:group2, you could do something like this: &nbsp;&nbsp;&nbsp; XDocument.View.ExecuteAction &quot;xCollection::insert&quot;, &quot;group2_44&quot; &nbsp;&nbsp;&nbsp; Set ...
    Posted to Code (Forum) by Jimmy on 02-17-2009
  • Re: Run a scipt against a field in a repeating table

    Yes,&nbsp;thank you.&nbsp; I just noticed that your code is&nbsp;in an OnAfterChange event handler, so you don&#39;t need a&nbsp;loop. Please try the following: Replace &nbsp;&nbsp;&nbsp; empid = XDocument.DOM.selectSingleNode(&quot;//my:Prefix&quot;).Text with &nbsp;&nbsp;&nbsp;&nbsp;empid = eventObj.Site.text And ...
    Posted to Code (Forum) by Jimmy on 02-17-2009
  • Re: Repeating Section Count

    Ok, please try putting this code in the event handler for a button.&nbsp; You will need to change the underlined parts.&nbsp; The first underlined part corresponds to the path of the field where the user will enter the count, and the second is the path of the repeating group on your form: XPathNavigator mainDataNavigator = ...
    Posted to General (Forum) by Jimmy on 02-17-2009
Page 235 of 259 (2583 items) « First ... < Previous 233 234 235 236 237 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.