[flexcoders] how common is Flex and Rails together?
Hi, I'm just wondering if there is anybody who is actively working on a project or knows of projects where Flex and Rails are used together. Looking online, I see a burst of blogs between 2007-2009 but then it quickly fizzles. Any thoughts about this? Theoretically, it seems to be an interesting and useful fit, but when I start considering the details of making it work... I'm no longer so sure. Thanks, Chris
Re: [flexcoders] Re: how to insert checkbox value into database
Ooops. By pragmatically I meant programmatically On Mon, Nov 23, 2009 at 12:30 AM, Chris Downey cdow...@gmail.com wrote: I'm not sure how much my code examples will help - I'm using SQL Server and before the data gets to SQL, I translate the boolean value to a 1 or 0. If I were in your shoes, the next thing I'd do is to figure out a way to know the exact value that Access is getting. Make no assumptions. Consider all the layers that single value is getting passed through. Can you send the value from CF to an Access macro? What I'm getting at is, if this were my problem and since I'm using SQL Server, I'd send the value to a stored procedure where I could examine and test it. With Access, what options do you have to pragmatically examine and test values sent from Cold Fusion? On Sun, Nov 22, 2009 at 8:03 AM, stinasius stinas...@yahoo.com wrote: Chris Downey you said you do this all the time, care to show how exaclty you do it using the first example of itemWorking, or you can show how to directly send the checkbox.selected value to the data access object layer (via your RemoteObject). please this would be very helpful. _ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
Re: [flexcoders] Re: how to insert checkbox value into database
For this problem to be solved, I think you need to find out what value is getting to Access. Something is reaching Access. What is it? On Mon, Nov 23, 2009 at 6:57 AM, stinasius stinas...@yahoo.com wrote: this is what i have tried to do following your previous example... private var poolSelected: Boolean = false; public function poolselected():void{ if(pool.selected == true){ poolSelected = 1; } else{ poolSelected = 0; } } private function insertHandler():void{ listManager.listProperty(poolSelected); mx:RemoteObject id=listManager destination=ColdFusion source=App.src.cfcs.propertyMaintenance showBusyCursor=true mx:method name=listProperty result=handleStringResult(event) fault=mx.controls.Alert.show(event.fault.faultString)/ /mx:RemoteObject mx:CheckBox label=Pool id=pool color=#99 width=160 fontSize=12 click=poolselected()/ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
Re: [flexcoders] Re: how to insert checkbox value into database
I'm not sure how much my code examples will help - I'm using SQL Server and before the data gets to SQL, I translate the boolean value to a 1 or 0. If I were in your shoes, the next thing I'd do is to figure out a way to know the exact value that Access is getting. Make no assumptions. Consider all the layers that single value is getting passed through. Can you send the value from CF to an Access macro? What I'm getting at is, if this were my problem and since I'm using SQL Server, I'd send the value to a stored procedure where I could examine and test it. With Access, what options do you have to pragmatically examine and test values sent from Cold Fusion? On Sun, Nov 22, 2009 at 8:03 AM, stinasius stinas...@yahoo.com wrote: Chris Downey you said you do this all the time, care to show how exaclty you do it using the first example of itemWorking, or you can show how to directly send the checkbox.selected value to the data access object layer (via your RemoteObject). please this would be very helpful. _ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
Re: [flexcoders] Re: how to insert checkbox value into database
Is your app successfully putting any data into the database now, or is this the first attempt to get it working? On Mon, Nov 16, 2009 at 6:47 AM, stinasius stinas...@yahoo.com wrote: Tracy that's what i did but it does not work... -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
Re: [flexcoders] how to insert checkbox value into database
Hi. I do that all the time (J2EE app server, SQL Server database) The checkbox is either selected or not (boolean). Lets say the checkbox is for is the item working? if (itemIsWorking.selected == true) then itemWorking = 1 else itemWorking = 0 Put the itemWorking value into the database column (which should obviously be a number datatype) For this approach, your database and app server don't matter at all. However, I'm thinking a better way would be since you are using an app server, just send the checkbox.selected value directly to the data access object layer (via your RemoteObject). Thats a great place to isolate the translation from true/false to 1/0 On Thu, Nov 12, 2009 at 11:04 AM, stinasius stinas...@yahoo.com wrote: hi, i have a flex form am using to collect data and insert that data into an access database using coldfusion as backend technology to communicate with the form and database. i have one problem though, how can i insert a checkbox value from the flex form into the database. thanks guys -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/