hi,

First of all I apologize if I have been posting too many newbie questions (and most about unity rather then reactor)... If this is not the appropriate forum please let me know.

... the documentation for the generic database messages invariably refers to the VIEWS accessing queries/objects returned. Is there any reason that the controller shouldn't access those return values....

so after a call to a genericList of my User table using email and password as criteria I want to add a function in my controller such as

<cffunction name="attemptLogin" access="public" returnType="void" output="true">
          <cfargument name="event" type="any">

                <cfset var loginResults = arguments.event.getValue("userQuery")>

                <cfif loginResults.recordcount>
                        <cfset arguments.event.addResult("success") />
                <cfelse>
                        <cfset arguments.event.addResult("failure") />
                </cfif>

        </cffunction>

The code works but I just want to make sure that I am not missing anything.

thanks,
Gabriel




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to