Commerce Server General - How to get latest Order by an UserID

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > June 2005 > How to get latest Order by an UserID





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get latest Order by an UserID
ravikk1010

2005-06-21, 3:34 am

I ordered some Items in Basket. I used basket.SaveasOrder().
Now in next screen I need acess that Order. That means I need to show Users to those Items which I have Ordered.

Is there any Direct Method to acess recent Order. Please, help me out.

Thanks & regards,

Ravi
Ravi Shankar

2005-06-21, 5:51 pm

The basket.SaveAsOrder returns a PurchaseOrder object reference. The
PurchaseOrder object has a PurchaseOrderID property which is a GUID that you
can pass onto the next page. On that page you can use the
OrderContext.getPurchaseOrder(guid, guid) call to load the PO for display.

Why don't you also have a look at some sample sites (Retail2002, Retail,
OrderSitelet) where this functionality/flow has been provided.

"ravikk1010" wrote:

>
> I ordered some Items in Basket. I used basket.SaveasOrder().
> Now in next screen I need acess that Order. That means I need to show
> Users to those Items which I have Ordered.
>
> Is there any Direct Method to acess recent Order. Please, help me out.
>
> Thanks & regards,
>
> Ravi
>
>
>
> --
> ravikk1010
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message1107165.html
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com