Ticket #333 (closed enhancement: fixed)
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
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)