bdw429s
February 25, 2011, 9:57pm
1
These can quite possibly be dismissed as a mater of preference, but two things come to mind:
Look into the “persist” and “persistStruct” arguments to the setNextEvent() method to do it all in one fell swoop.
event.getValue () allows you to specify a default value as the second argument which can clean up your structKeyExists lines.
Thanks!
~Brad
lmajano
February 25, 2011, 10:05pm
2
I suggest flash ram. Flash ram also have methods to persist the objects longer than 1 request or make it where you manage the life span of it. I suggest digging in the API for the arguments to use.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Thanks for the suggestions guys… this is looking cleaner!
/**
I will save a new category or update an existing one