random id isn't posting
Thanks for your help. I am able to get the test Id to post to the new testkey table but not the random code to post to the table using the insert server behavior.
This is what I did...please let me know where I am falling short:
I added a new testkey column to ecart and set it to be unique I named it DetailRandom.
Then on the products page I added the add to cart button, selected the new DetailRandom cart column, clicked the lightning bolt next to the random number column and selected the Random Password binding from the binding panel.
I then added a new table to my database with the columns
testkeyID - Primary key Auto Number
testKey - the random number will be stored in this column
ItemIDfk - Foreign Key relation to relate the testKey to the test
I then added hidden form variables for the ItemID and the testKeyID to the checkout page.
I binded the ItemID with the ecart ItemId variable <?php echo $eCart1->DisplayInfo("ID"); ?> to the checkout page and I binded the testKey that was generated with the Security Assist with the ecart testKey <?php echo $eCart1->DisplayInfo("DetailRandom"); ?> to the checkout page.
I then added the Insert Server Behavior to the confirm page and using the checkout form I selected the new table (testkey) and I selected the DetailRandom field in the checkout form page for the testkey value and I selected the ItemId field for the ItemIDfk field.
When I ran a purchase everything went fine for the purchase but the only fields added to the testKey table was the ItemId field from the testproducts Id. The Detail Random field in the ecart object was not added.
The detailrandom key worked in this table until I tried to add the insert record server behavior with both fields.
What am I doing wrong?