Alphabetizing Pull Sheet

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kens
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Wed Apr 04, 2007 7:57 am
Location: West Palm Beach, FL
Contact:

Alphabetizing Pull Sheet

Post by kens » Mon Nov 15, 2010 10:01 am

Hi all-

Is there an easy way to alphabeetize the pull sheet?

Thanks

Ken

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Alphabetizing Pull Sheet

Post by mazhar » Mon Nov 15, 2010 10:09 am

Can you explain this in details? Are you looking to sort pull sheet items in alphabetical order?

kens
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Wed Apr 04, 2007 7:57 am
Location: West Palm Beach, FL
Contact:

Re: Alphabetizing Pull Sheet

Post by kens » Mon Nov 15, 2010 10:18 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Alphabetizing Pull Sheet

Post by mazhar » Mon Nov 22, 2010 5:59 am

Give this a try, edit your Admin/Orders/Print/PullSheet.aspx.cs file and locate following code line

Code: Select all

ItemGrid.DataSource = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
and make it look like

Code: Select all

OrderPullItemCollection items = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
        items.Sort(new CommerceBuilder.Common.GenericComparer("Name", GenericComparer.SortDirection.ASC));
        ItemGrid.DataSource = items;

kens
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Wed Apr 04, 2007 7:57 am
Location: West Palm Beach, FL
Contact:

Re: Alphabetizing Pull Sheet

Post by kens » Thu Dec 16, 2010 12:11 am

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

Post Reply