0

I have an InfoPath form with a drop-down-list, where the datasource is based on a sharepoint list. The listentries however seem to be random.

Is there any way to sort the data?

3 Answers 3

1

This should help: http://www.joellipman.com/articles/microsoft/sharepoint/519-sort-order-a-dropdown-list-in-ms-infopath-without-programming.html

0

What version of InfoPath are you using. Check out this post on how to create a xml datasource connection to the SharePoint list. This is for InfoPath 2007. http://blogs.msdn.com/b/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx Sometimes this method could be blocked by IT.

0

I think list items sort by word order. By the way, a few days ago, I had the same problem and I solved like this:

  1. Right click the dropdown
  2. Select the "Dropdown Properties"
  3. Below "Dropdown Options" you will see the data source. Click to "Add" button. It will open another window. Select "New Connection" and then "Get Data" and click next.
  4. Then select "SharePoint Library or List"
  5. On the next window, select your source list and click next.
  6. Then you will see all columns of your source list. You can sort your source list by any column. If you want a custom order, you can add a new column to your source list and sort this list by this column.

Hope this helps.

Erben.

3
  • 1
    Actually they sort in the order in which they are presented in the default view of the target SharePoint list - the default view also governs some other behavior of this list-fetch method, such as item batch limits. Nov 6, 2012 at 22:50
  • I don't think so. I choose columns to sort on InfoPath only. I think default view does not have any effect over InfoPath forms.
    – newbie
    Apr 12, 2013 at 12:01
  • So, first off, my comment was only partially correct. I believe sorting in datasets was only added in InfoPath 2010, and I think it only works when forms are shown in the InfoPath client. That said, the default sorting when the access method is "SharePoint library or list" is by list item ID, and the only way to change this in InfoPath 2007 is to delete all the rows and re-add them in Datasheet view. When you access it by OWSSVR.dll, then the limits/sorting is based on the default view, as I stated above. So yes, it definitely can have an effect on InfoPath. Apr 12, 2013 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.