Rakonic
Posts: 9
|
| Posted: 05/08/2010, 2:13 AM |
|
I work with book store project and i must in page shoppingcart to set form for users data and when i click purchase button that form must insert data in table user and must display user_id in store_order table.
How can i do this please help.
|
 |
 |
computerman
Posts: 27
|
| Posted: 05/10/2010, 7:46 AM |
|
you can use ccgetuserid() easily to get userid.
_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 05/10/2010, 8:28 AM |
|
Actually a little more info might help.
Put a hidden text field on your purchase page.
Attach the text field to the database field you wish to update
In the before show event for the hidden text field create a retrieve value for control
In the properties for the new hidden control
Set Conrol to the hidden control name.
Type = Expression
The name = CCGetUserID()
Now if you need to set conditions where it is not updated if the purchase fails.. You would have to do the for the entire record insert or update.
Hope that helps
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
Rakonic
Posts: 9
|
| Posted: 05/11/2010, 6:17 AM |
|
Thanks my friends
|
 |
 |
|