RE: [coldbox:16668] RE:Coldbox 3.5RunEvent

How can you be sure it is not being executed? Perhaps it is being executed, and just not doing what you expect.

Place a writeDump(); and abort; inside the loop to confirm that the loop is being entered. Also, check the qry.recordcount to confirm it is greater than 0.

Alternatively, this would be an excellent place for a step debugger if you have something like Fusion Debug set up.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

The reason is not doing it because it suposed to write into the database and it is not . if I take the code and put it ouside then it works

Is this on Railo or Adobe CF?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

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

Social: twitter.com/lmajano facebook.com/lmajano

it is on adobe CF

signature0.jpg

I think it might be related to the implicit structure calls you have in the runEvent() then. ACF has a bug with those. Try assigning the variables first

var args = {logType =3,logID = 1,Description = ‘Group: #locID2#’,dsn = arguments.DSN};
var locLogDetailID = RunEvent(event=“ehResource.Logger”,eventArguments=args);

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

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

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg