Team


Im trying to add key value pairs to my Struct via StructInsert() by way
of submitting values from a form to a query, pulling the resultset back
and *add*ing to my Struct that may have already been created via
StructNew()  My question is how do I handle this without
Sessionmanagement being enabled.


Note, Im not just looping over one resultset... Im submitting, for
instance, an id to <cfquery> which would return me one record..., I then
take that resulting record and add it to my struct - If I need to add
another user... repeat!  Adding to the Struct until I hit Next.


When I had sessionmanagement enabled - it was a piece of cake.  Wrap the
functionality inside of <cflock scope="session"...> and your done.


However, in this case, where sessionmanagement is not enabled and
clientmanagement is - you run into the problem of StructInsert()
overwriting what is already in the struct each time you hit the page.
How best would one handle this ?


Array of Structs is a very nasty solution in my opinion.. and I figure
if you can add Struct to the array with a "counter" for instance, you
should just be able to add to the struct the same as I was accomplishing
it with sessionmanagement enabled.


TIA
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to