Sort a Repeating Table - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Sort a Repeating Table

Last post 09-28-2007 08:07 AM by Shiraz Cupala. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-27-2007 11:31 AM

    Sort a Repeating Table

    I need to sort repeating table after it is read in from an Access database and before it is displayed. I need to sort on two columns Budget Element and Date. Table looks like below. What  is the best way to do this.

    Control Account   Budget Element   Date  Hrs  Dols

  • 09-27-2007 11:30 PM In reply to

    Hi,

    Check out the "Asset Tracking" sample that came with InfoPath.   It has code that uses a drop down list that sorts the assets, and a "Sort" button with the code in the onClick event.

    Stephanie

    Stephanie Cantwell / Test Manager
    Qdabra® Software / Streamline data gathering to turn process into knowledge

  • 09-28-2007 08:07 AM In reply to

    Yes, the Asset Tracking example from InfoPath 2003 does have code to do this and you can leverage that in your solution.

    Unfortuantely the InfoPath 2007 Asset Tracking solution does not have this because the design point for the InfoPath 2007 samples was to not use any code. Sorting items in InfoPath currently requires code.

    You can get a copy of the IP2003 Asset Tracking solution from the Microsoft web site if you only have IP2007. It will work in IP2007 just fine. It is available here: http://office.microsoft.com/en-us/templates/TC010785081033.aspx?pid=CT101481361033

     

    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.