RE: RE: [coldbox:8326] Retain data, set next event and show errors

These can quite possibly be dismissed as a mater of preference, but two things come to mind:

  1. Look into the “persist” and “persistStruct” arguments to the setNextEvent() method to do it all in one fell swoop.

  2. event.getValue() allows you to specify a default value as the second argument which can clean up your structKeyExists lines.

Thanks!

~Brad

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