KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Call 4DBKOrderValidate before calling 4DBKOrderCode
PRODUCT: 4D Business Kit | VERSION: 2.x | PLATFORM: Mac & Win
Published On: May 11, 2005

After a customer has checked out and has submitted an order, it would be very convenient if the customer were able to receive an order number to reference the transaction. So when does the order number get generated? Where on my page should I execute the 4DBKOrderCode command? Basically, 4DBKOrderCode should be called or executed after the 4DBKOrderValidate command has executed. For example, if you would like to send an email confirmation with order number to a customer, the email must be sent after the 4DBKOrderValidate has been executed. The 4DBKOrderCode is not generated unless 4DBKOrderValidate is executed first.