sorting sharepoint lists - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

sorting sharepoint lists

Last post 08-06-2007 01:21 PM by shaun.nieves. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-30-2007 07:30 AM

    • GregB
    • Not Ranked
    • Joined on 02-09-2007
    • Posts 10

    sorting sharepoint lists

    I've heard that a Sharepoint list's default view dictates how Infopath will sort/present the Sharepoint data. In preview mode that appears to be the case. However, after publishing and invoking from the site, the data is always sorted by ID. Is there a bug in web-enabled forms that you know of?

    Related to this...
    I have a sharepoint list that pairs an employee with their manager. This list is used to populate two dropdown lists (an employee dropdown and a manager dropdown) in a web-enabled form.
    Each dropdown should be sorted according to it's contents.

    How can I do this? I'm trying to stay away from coding.

    Thanks, Greg
  • 03-30-2007 09:26 AM In reply to

    Re: sorting sharepoint lists

    The best way to accomplish what you want is to sort the list by code once its been loaded into InfoPath. Web based forms should support managed code, so you should be able to do this with C# or VB.NET.

    Sort by both columns: first drop-down, then second drop-down:

    A A
    A B
    A C
    B A
    B B
    B C
    C A
    C B
    C C

    Then it doesn't matter what sorting the SP list has.
  • 08-06-2007 01:21 PM In reply to

    Re: sorting sharepoint lists

    Would anyone happen to have a code example of what Greg was talking about? I have a drop-down list I'd like to sort but can't figure out how. Any help would be appreciated. Thanks!
    Shaun Nieves
    Sharepoint Manager
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.