wow this seems to work but never used singleton before. jeremy, care to explain
how staff works in detail? or maybe stinasius may understand what is being done
here. if so please share with a flex newbie.
sorry john, i have never used singletons before either. i have a static class
and would like to know how to get it store the result of the query. otherwise i
have not made any progress at all. am thinking if someone can work out for me a
solid flex/cf/access login(authentication) system and
hi, may be i will try to put the question this way, in my cfc i have to return
a Boolean value true or false because in my result handler on the login page
i test to see if the result returned is true or false then make a decision to
accept login or not. this is my result handler on the login
: storing login data from a cfquery for use throught
flex app
hi, may be i will try to put the question this way, in my cfc i have to
return a Boolean value true or false because in my result handler on the
login page i test to see if the result returned is true or false then make a
decision
i have also had the same problem with login authentication in flex and
coldfusion. this is not well addressed especially for beginners like me.i wish
someone could come up with a tutorial that does login authentication through
database and cfc remote object calls and then shows how to store
give this a try , the problem may be the return type, struct for successful
and boolean for unsuccessful
cffunction name=loginUser access=remote returntype=struct
//do your stuff
cfset returnValue = structnew()
cfset returnValue.success = false
cfset returnValue.lastResult =
cfif
when i try that i get the following error
ReferenceError: Error #1069: Property message not found on
mx.messaging.messages.ErrorMessage and there is no default value.
at components::Login/serverFault()
at components::Login/___Operation1_fault()
at
If I were you I would go through the tutorials at...
http://flexcf.com/tutorials
http://blogs.adobe.com/flexdoc/2007/02/hello_world_application_for_fl_1.html
http://www.adobe.com/devnet/coldfusion/articles/adobetv_cfpwrdflex.html
Valdhor, i think what stinasius is asking abt has nothing to do with the links
you provided. bruce phillip's example is about login in flex with coldfusion
backend. the problem is not the login, the problem is how to store the result
of the login query in the static class for use throughout the
Which is just an extension of the examples at the links I provided.
By using Bruce Phillips example; The CRUD example at
http://flexcf.com/tutorials; and the Ben Forta Adobe TV presentation at
http://www.adobe.com/devnet/coldfusion/articles/adobetv_cfpwrdflex.html, anyone
should have a good
Here is a good example that you can use.
Here is a link to the source code. Right click to view.
http://view.myhomesmart.com/singleton/singleton.html
Here is the cfc code.
cffunction name=Do_Login access=remote output=false
returntype=struct
cfargument name=username
, March 12, 2009 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: storing login data from a cfquery for use throught
flex app
hi how do i assign the properties of UserInfo in the result handler?
in my cfc the return type is boolean and is set to return true if there is a
match. when i set the return type to query to return the query
result(checkAuthentication), nothing happens.
cffunction name=loginUser access=remote returntype=boolean
cfargument name=username
...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 12, 2009 4:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: storing login data from a cfquery for use throught
flex app
in my cfc the return type is boolean and is set to return true if there is a
match. when i set
Don't you already know the username and password? You had to send them to CF
for authentication. If the response is yes, populate your userinfo object;
Otherwise, don't ;-}
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:
in my cfc the return type is boolean and is set to
hi how do i assign the properties of UserInfo in the result handler?
This can be done fairly simply using an oop approach.
With out going into to much detail. You can create a single instance of a
storage class that gets/sets the data that you are looking for.
Here is a really basic example:
package com.login{
// do some imports
public
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:
hi i got a login form in flex with a coldfusion backend and it work's
perfectly but i need it to go one step further. store login data form the
cfquery so that it can be reused throughout the flex app. here is a senario.
the
hi i created a storage class that i was using and it works perfectly but i dont
know how to use it to get data from a cfc through remote object call. here is
my code it works with username and password but when it comes to geting the
email address associated with the username and password from
Sent: Wednesday, March 11, 2009 1:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: storing login data from a cfquery for use throught
flex app
hi i created a storage class that i was using and it works perfectly but i
dont know how to use it to get data from a cfc through remote
20 matches
Mail list logo