Hi all-
Is there an easy way to alphabeetize the pull sheet?
Thanks
Ken
Alphabetizing Pull Sheet
Re: Alphabetizing Pull Sheet
Can you explain this in details? Are you looking to sort pull sheet items in alphabetical order?
-
- Lieutenant Commander (LCDR)
- Posts: 84
- Joined: Wed Apr 04, 2007 7:57 am
- Location: West Palm Beach, FL
- Contact:
Re: Alphabetizing Pull Sheet
Mazhar-
Yes, I would like to have the items on the list sorted alphabetically. This would make it easier for my pullers on a busy Monday morning.
Thanks
Ken
Yes, I would like to have the items on the list sorted alphabetically. This would make it easier for my pullers on a busy Monday morning.
Thanks
Ken
Re: Alphabetizing Pull Sheet
Give this a try, edit your Admin/Orders/Print/PullSheet.aspx.cs file and locate following code line
and make it look like
Code: Select all
ItemGrid.DataSource = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
Code: Select all
OrderPullItemCollection items = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
items.Sort(new CommerceBuilder.Common.GenericComparer("Name", GenericComparer.SortDirection.ASC));
ItemGrid.DataSource = items;
-
- Lieutenant Commander (LCDR)
- Posts: 84
- Joined: Wed Apr 04, 2007 7:57 am
- Location: West Palm Beach, FL
- Contact:
Re: Alphabetizing Pull Sheet
Thanks Mazhar!
It turns out it would not work using ("Name", GenericComparer.SortDirection.ASC)); , I had to remove the , GenericComparer.SortDirection.ASC - otherwise I got an error about the wrong number of type arguments, But that's ok, it sorts now!
Thanks again for all your help.
Ken
It turns out it would not work using ("Name", GenericComparer.SortDirection.ASC)); , I had to remove the , GenericComparer.SortDirection.ASC - otherwise I got an error about the wrong number of type arguments, But that's ok, it sorts now!
Thanks again for all your help.
Ken