RE:Coldbox 3.5RunEvent

I have an issue running RunEVent while inside of the for loop.

So the code is here This code is working

for (var ff = 1;ff lte qry.recordcount;ff++) {
var locID2 = qry[“ID”][ff];

}

Once I added runEvent inside of the loop then it start breaking
for (var ff = 1;ff lte qry.recordcount;ff++) {
var locID2 = qry[“ID”][ff];
var locLogDetailID = RunEvent(event=“ehResource.Logger”,eventArguments={logType =3,logID = 1,Description = ‘Group: #locID2#’,dsn = arguments.DSN});
}

You may need to add the prePostEvent=false attribute (i think thats the name) if you just want the event to fire and not the full request lifecycle to get to that event. What is the behavior you are seeing?

Nolan Dubeau

Load .,8,1