Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unique identifier

Status
Not open for further replies.

nelco

Programmer
Apr 4, 2006
93
US
I am asked to create confidential fraud complaint form which will show unique identifier number on the form.
How do I create this on page load event. This is the first time I am assigned a project like this.

Any help, is appreciated.
 
From the database.

GUID is a very long number.
 
I don't understand why you would display that value. If it is an identity, then it won't be generated until the record is inserted into the DB
 
The user wants person who complains should have an identity number as this will be an anonymous form.
I told them that I can show the number in Thank you page but user wants us to show number as soon as the form opens.
 
this is backwards. there is no point assigning an identifier before the record is saved. If I visit the comment form I don't need an identifier until I have submitted the form. there is always the possibility of canceling, in which case no ID would be issued.

once submitted assign an ID and provide this as part of the email, or a link in the email to the ticket. this is a very common and standard approach to solving this problem.

if the ID needs to be human readable or has business meaning than a number, even sequential, would be the a simple solution. I would
also recommend this value not being the PK in the database. PK with business value are never a good idea.

if the ID is just to identify the issue than a GUID is the way to go. human don't have to read it and they are 99.999999...% unique.

...back to the question at hand....
there is no reason, or need, to generate an identifier before the information is submitted. it simply does not make sense.



Jason Meckley
Programmer

faq855-7190
faq732-7259
 
I agree and I will be again talking to the client and convince.
Thanks everyone for the answers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top