Hi Adam,

I set my own id's by using code that generates
dynamic numbers. By creating my own I can 
incorporate user information into the id numbers
if I need to.

So it would go something like this:

<cfscript>
function getID_Num(numberOfDigits) {
id = "";
for (i=1; i LTE numberOfDigits; i=i+1) {
id=id & RandRange(0,9, "SHA1PRNG");
}
return id;
}
</cfscript>

<cfset trans_id = #getID_Num(5)#><== Change number

<cfset session.trans_id = "#trans_id#">

The above would create a five digit random
number, which could be inserted into the group
of records a Consultant submits. If you need a 
larger or shorter number just change the
number where I indicated above.

You could also add additional information to the 
beginning of the trans_id or to the end, to further 
connect the transaction to the individual Consultant.

Leonard 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4737
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to