If I wish to pass a few arguments to this event how would this be
done?
for example I have tried the following which i assumed would work but
I got an error.
The process() method takes in the argumentcollection. Put all the arguments you wish to pass via the arguments. So if you wanted to pass two arguments:
That’s it, it basically proxies the request to the dashboard.gridCall event with all the variables collected into the request context. Internally in your events, they just are a normal coldbox request where you interact with the request context.
any function gridCall (required string sortColumn,required int sort)
output=false{
var rc = event.getCollection();//get scope
var objORMUsers = EntityLoad("Campaign",{},"#arguments.sortColumn# #arguments.sort#");
return objORMUsers;
event.noRender();
}
message: Error invoking CFC /proxyCB.cfc : The SORTCOLUMN parameter to
the gridCall function is required but was not passed in
They are not passed as event handler arguments. They are added to the request collection, this way it is the same way to develop mvc or remote applications.