[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-14 Thread johndoematrix
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.

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-14 Thread stinasius
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread stinasius
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

RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread Tracy Spratt
: 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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread johndoematrix
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread alinmircea_s
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread stinasius
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread valdhor
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread johndoematrix
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread valdhor
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread Jeremy Rottman
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

RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread Tracy Spratt
, 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?

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread stinasius
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

RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread Tracy Spratt
...@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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread valdhor
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-11 Thread stinasius
hi how do i assign the properties of UserInfo in the result handler?

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread Jeremy Rottman
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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread Jeremy Rottman
--- 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

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread stinasius
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

RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread Tracy Spratt
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