Ticket #333 (closed enhancement: fixed)

Opened 17 years ago

Last modified 17 years ago

add convenience method to get the current event value

Reported by: Chris Blackwell Owned by: DanWilson
Priority: normal Milestone: 3.0
Version: 3.0.178 Severity: minor
Keywords: Cc:

Description

Originally posted by Chris Blackwell on 12/15/2008 at 5:55 AM: entered by Ezra Parker on port to new system

add a getEventValue() method to EventContext.cfc as a short cut to

<cfset nameOfCurrentEvent = event.getValue(event.getValue("eventValue")) />

suggested method

<cffunction name="getEventValue" access="public" returnType="any" output="false" hint="I get the current event name">
    <cfreturn variables._state.getValue(variables._state.getValue("eventValue")) />
</cffunction>

Change History

Changed 17 years ago by DanWilson

The method getInitialEventHandlerName() is (and has been) implemented in the EventContext? for this purpose.

Changed 17 years ago by DanWilson

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.