|
Erik,
What you want to do is retrieve the newly-inserted
value from the database using the table's alternate key (which the user entered
into the form). Basically your action page will look something like
this:
-----------------------------------
<cf_ValidateForm ...> ... server-side validation here ... </cf_ValidateForm> <cf_InsertRecord table="tablename"
redirectTo="Nowhere">
... columns go here ... </cf_InsertRecord> <cfset newPrimaryKey =
Application.DatabaseBlocks.GetRecord("pkcolumn", "tablename", "akcolumn =
'#Form.akcolumn#'").pkcolumn>
<cflocation
url=""
addtoken="No">
----------------------------------- HTH,
Dave
|
- [plum] How to get the primary key from cf_insertR... Erik Myhre
- Re: [plum] How to get the primary key from c... David Churvis
- [plum] Adding Role Stephen Ansari
- Re: [plum] Adding Role Stephen Ansari
- Re: [plum] Adding Role Jeff Fleitz
- Re: [plum] Adding Role Aaron Longnion - hotmail
- Re: [plum] Adding Role Aaron Longnion - hotmail
- RE: [plum] Adding Role Dan
