Order Number
Last Post 09-07-2009 07:29 PM by JFranks22. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
JFranks22User is Offline
wading in the water
wading in the water
Posts:26
Avatar

--
09-04-2009 08:12 PM

    Hi, I see two options for providing an order number to customers back in 2008 - http://www.datasprings.com/Products....aspx#5027

    1. Textbox or hidden field with a SQL Default, the SQL default would basically generate a unique variable (such as a GUID).

    2. Use the GUID.

    I am not sure I understand option 1 and the GUID is not very user friendly.

    Are there any further ideas for implementing a user friendly order number? If not, would you please expand on how I could implement option 1?

    Thank you!

    JFranks22User is Offline
    wading in the water
    wading in the water
    Posts:26
    Avatar

    --
    09-04-2009 09:15 PM

    FYI - We would really like to be able to include the 8-10 character Order Number in the subject of the email, this will help differentiate between the mulitple orders from the same customer. With the model we are working with, customers could place 5-50 orders in a given day or a few hundred a month.

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-06-2009 01:37 PM
    Hi, you can still use the SQL default and only take the first ten characters of the 32 bit auto generated GUID. Try out this statement:
    1) create a textbox field called OrderNumber and use the following SQL Default Driven statement:
    select substring(replace(newid(),'-',''),1,10) as DefaultValue

    This will generate a random 10 character value that's practically almost impossible to be duplicated and you can include this token in your email. -- David
    JFranks22User is Offline
    wading in the water
    wading in the water
    Posts:26
    Avatar

    --
    09-07-2009 07:29 PM
    Hi - the code you provided will work for now and looks much better than the long GUID string. Thank you!

    I like the way you say "practically almost impossible to be duplicated"!


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi