Can I Iterate through InfoPath fields by type? - InfoPath Dev
in

InfoPath Dev

Can I Iterate through InfoPath fields by type?

Last post 02-22-2011 07:27 AM by xenondiver. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-22-2011 07:27 AM

    Can I Iterate through InfoPath fields by type?

    Hi

    I use the XmlFormView control in a Sharepoint webpart to display InfoPath forms. 

    Having loaded an InfoPathForm to the XmlFormView control is it possible to iterate through InfoPath fields/controls programatically by their element type?
    I would like to iterate through all attachment controls but without relying on the control name (i.e. my:Attachment). In pseudocode what I want is to do this for attachment fields:

    Foreach field in InfoPathForm
    {
    if(field is base64Binary)
     do something
    }

    Regards

    Christer

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.