Search - InfoPath Dev

InfoPath Dev

Search

Page 183 of 259 (2583 items) « First ... < Previous 181 182 183 184 185 Next > ... Last »
  • Re: Attachment Encoder and Decoder

    &nbsp;It looks like there&#39;s a bug in Microsoft&#39;s code sample. They have this line: InfoPathAttachmentEncoding.Encoder myEncoder = new InfoPathAttachmentEncoding.Encoder(fileName); But the class is called InfoPathAttachmentEncoder, not just Encoder. Try this instead: &nbsp;InfoPathAttachmentEncoding.InfoPathAttachmentEncoder ...
    Posted to Code (Forum) by Jimmy on 02-09-2010
  • Re: Copy LAST row of repeating table?

    [quote user=&quot;kcoakley&quot;]What are the offending items in this code?[/quote]&nbsp; Every single one of them, I&#39;m afraid :-) &nbsp;The corresponding code for IP 2007 would be:XPathNavigator row = MainDataSource.CreateNavigator().SelectSingleNode(&quot;//my:repeatingtable[last()]&quot;, NamespaceManager); // I don&#39;t think you need ...
    Posted to Code (Forum) by Jimmy on 02-09-2010
  • Re: programmatically adding rows to Infopath repeating table - rows have buttons

    &nbsp;What happens if you remove this part?: field = doc.CreateElement(&quot;field3&quot;, NamespaceManager.LookupNamespace(&quot;my&quot;)); node = group.AppendChild(field); node.InnerText = &quot;Cell 3&quot;; The button is part of the repeating table control. It&#39;s not something you manually add to each row from the code.
    Posted to General (Forum) by Jimmy on 02-09-2010
  • Re: Copy LAST row of repeating table?

    &nbsp;What happens if you use &quot;//my:repeatingtable[last()]&quot; in that first line?
    Posted to Code (Forum) by Jimmy on 02-08-2010
  • Re: Changing the date format in an expression box

    &nbsp;I don&#39;t know of any function that&#39;s available for doing this (InfoPath has a built-in function called xdFormatting:formatString(), but it doesn&#39;t seem to be directly accessible in expression boxes. However, you can accomplish this with some substring() functions and a secondary XML data source.&nbsp; Have a look at the attached ...
    Posted to General (Forum) by Jimmy on 02-08-2010
  • Re: The name of the second repeating section

    &nbsp;my:SectionA[count(../my:SectionA)] should do the trick, but for this purpose, my:SectionA[last()] should work just as well.
    Posted to General (Forum) by Jimmy on 02-08-2010
  • Re: The name of the second repeating section

    &nbsp;Try removing the spaces before and after the slashes.&nbsp; What&#39;s the exact formula you see when you click the Show XPath checkbox in the formula builder?
    Posted to General (Forum) by Jimmy on 02-08-2010
  • Re: The name of the second repeating section

    &nbsp;If my:GroupA is the name of your repeating group and my:FieldB is the name of the field you want to target, then the path to FieldB in the second row of GroupA would bemy:GroupA[2]/my:FieldB
    Posted to General (Forum) by Jimmy on 02-07-2010
  • Re: Specific data validation with text box

    &nbsp;I also don&#39;t understand why you would suggest using a separate textbox to perform this validation.&nbsp; That would give the user a confusing textbox with all the spaces converted to as. This pattern should work:[a-zA-Z]([ ]*[a-zA-Z])*The pattern above will approve strings that meet all of the following criteria:Contains one or more ...
    Posted to General (Forum) by Jimmy on 02-06-2010
  • Re: How to set default value in dropdown box by code.

    You need to pass the NamespaceManager to SelectSingleNode().&nbsp; You&#39;re already doing that correctly in this line:&nbsp;XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode(&quot;/my:myFields/my:SomeGroup&quot;, NamespaceManager).AppendChild();
    Posted to General (Forum) by Jimmy on 02-05-2010
Page 183 of 259 (2583 items) « First ... < Previous 181 182 183 184 185 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.