ColdBox Framework Forums Notification: Post to runEvent() doesn't return anything

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.

many thanks
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=D2734E5A-FF65-CEF6-657A4A7F9AA28D35