Skip to main content
ajithman
Inspiring
December 16, 2008
Question

Model Glue - Passing variables between events

  • December 16, 2008
  • 1 reply
  • 471 views
Hi,
I am working on coldfusion with model glue architecture. Is there any method to get the value that is set in the controller file driven from a particular event to be accessed from another event.
Example
Code in controller file :-
<cfset arguments.event.setValue("data","some data")>
<cfset arguments.event.addResult("Duplicate")>
Question is can i get the MG variable data in the event triggered by the result Duplicate?
Pls help.
    This topic has been closed for replies.

    1 reply

    Inspiring
    December 16, 2008
    Hi,

    Like this,

    arguments.event.getValue("eventVariableName")

    (or)

    <cfset eventValues = arguments.event.getAllValues() />
    and do a find....


    HTH