How to sort attachments attached to an attachment control in InfoPath - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to sort attachments attached to an attachment control in InfoPath

Last post 05-15-2012 07:37 AM by Hilary Stoupa. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-10-2012 04:38 AM

    • Prateek
    • Not Ranked
      Male
    • Joined on 05-10-2012
    • Bangalore
    • Posts 4

    How to sort attachments attached to an attachment control in InfoPath

    I have a requirement to sort the files attached to a single file upload control in InfoPath 2010. The InfoPath template is associated with a list.
  • 05-14-2012 09:52 AM In reply to

    Re: How to sort attachments attached to an attachment control in InfoPath

    I don't think this is possible - this would require code and we can't have code in a list form - that said, you could look at the XSL and see if you can do something there - not sure if a list form will like XSL edits outside of the designer, but it may be worth a try.

    Hilary Stoupa

  • 05-14-2012 08:23 PM In reply to

    Re: How to sort attachments attached to an attachment control in InfoPath

     

    Hilary Stoupa:

    I don't think this is possible - this would require code and we can't have code in a list form - that said, you could look at the XSL and see if you can do something there - not sure if a list form will like XSL edits outside of the designer, but it may be worth a try.


    I also think so.

     

  • 05-15-2012 12:07 AM In reply to

    • Prateek
    • Not Ranked
      Male
    • Joined on 05-10-2012
    • Bangalore
    • Posts 4

    Re: How to sort attachments attached to an attachment control in InfoPath

    How about keeping the InfoPath template in a Form Library instead of SharePoint lists? Will that work?
  • 05-15-2012 07:37 AM In reply to

    Re: How to sort attachments attached to an attachment control in InfoPath

    Well, if it were a full InfoPath form, you could add code that would:

    1. Decode the file attachments and get the name of each
    2. Copy the file attachment nodes
    3. Sort the file attachment nodes
    4. Delete the original nodes
    5. Append the copied nodes

    However, if you do this as the user is attaching the nodes, I'd think the user experience would be pretty poor - having things move around on you while you are filling out a form is kind of disconcerting - same with if you tried to address this in the XSL only. It is a requirement I'd probably push back on a bit, frankly.

    Hilary Stoupa

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