Title: RE: runEvent() doesn't return anything
Thread: runEvent() doesn't return anything
Forum: Need Help?
Conference: ColdBox
User: sanaullah73 Hi
[code]
<cffunction name="getUserData" access="public" returntype="void"
output="false">
<cfargument name="Event"
type="coldbox.system.beans.requestContext">
<cfset var rc =
Event.getCollection() />
<cfset rc.arrUserData = "Sana Ullah" />
</cffunction>
[/code]
.CFM FILE
[code]
<cfset
getController().runEvent('ehGeneral.getUserData')>
<cfdump
var="#rc.arrUserData #">
[/code]
if you are using request context (rc) then
in your handler does not need to return any value.
Created a sample code for
you. Please let me know how things going on your end.