Find shipment by shipment number in BasketShipmentCollection

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Find shipment by shipment number in BasketShipmentCollection

Post by ZLA » Mon Jul 13, 2009 2:41 pm

Are the shipments in BasketShipmentCollection always in ShipmentNumber order?
If not, can I find a particular shipment using the Find method or do I need to loop through the collection?

Thanks.

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

Re: Find shipment by shipment number in BasketShipmentCollection

Post by mazhar » Tue Jul 14, 2009 5:19 am

Find method filters depending upon predicates alternatively you can iterate over collection and grab desired one.

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: Find shipment by shipment number in BasketShipmentCollection

Post by ZLA » Tue Jul 14, 2009 5:35 am

Thank you Mazhar. Can you provide an example of using predicates to ge tme started?


ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: Find shipment by shipment number in BasketShipmentCollection

Post by ZLA » Tue Jul 14, 2009 6:36 am

Perfect! Thanks.

Post Reply