[flexcoders] Is there a simple Cairngorm 2 walkthrough out there?
I realize that Cairngorm isn't exactly intended for an extremely small app, but I am wondering if anyone has seen a very basic tutorial on creating a simple app using Cairngorm. I have read all of the articles out there a couple of times and have a good grasp on the principles of the design pattern, but seem to get bogged down on the structure of an actual app. I would love to find a very simple app that walks through the creation from beginning to end. So, does anyone know of anything or should I start going through the Cairngorm Store again. :) Thanks!!! Joe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How do you install CF Extensions for Flex 2?
That's it. My question is the subject. :) I have searched hi and low and can not seem to figure out where the CF Extensions for Flex 2 are and how to install them. Thanks for your help! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How do you install CF Extensions for Flex 2?
Just to make sure I am explaining myself properly...I am looking to install the extensions into Flex Builder so that I can utilize the RDS and CFC creation features. I had it in the Beta release, but I just can't put my finger on how to install them now. Thanks again! --- In flexcoders@yahoogroups.com, Mike Anderson [EMAIL PROTECTED] wrote: Oh, sorry about that - I mis-read your post - you are referring to the portions that get copied to the actual ColdFusion Server. I apologize for jumping the gun on that post - I should have read it through more thoroughly before replying. Mike - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Friday, August 04, 2006 2:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How do you install CF Extensions for Flex 2? they should be in the temp directory FB used to install. You can nab them here http://ray.camdenfamily.com/index.cfm/2006/7/6/Getting-the-RDS-extension s-for-CFEclipse too. go gators! DK On 8/4/06, g8torjoe [EMAIL PROTECTED] wrote: That's it. My question is the subject. :) I have searched hi and low and can not seem to figure out where the CF Extensions for Flex 2 are and how to install them. Thanks for your help! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How do you install CF Extensions for Flex 2?
A Thank you for that. I guess a search would have turned it up, but I thought about that too late. Thank you!!! --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: they should be here C:\Documents and Settings\[UserAccountName]\Local Settings\Temp\ColdFusion Extensions for Flex Builder João Fernandes On 8/4/06, g8torjoe [EMAIL PROTECTED] wrote: That's it. My question is the subject. :) I have searched hi and low and can not seem to figure out where the CF Extensions for Flex 2 are and how to install them. Thanks for your help! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ItemRenderer with Button
I have a dataGrid control with an itemRenderer containing a button. The button has a click handler which is defined as a private function in the script tags. Every time I try to compile I get an error: 1180: Call to a possibly undefined method orderItem. A PARTIAL piece of the code is below. I can't seem to figure out why this is happening. Thanks mx:DataGrid id=dgPart dataProvider={partList} editable=false mx:columns mx:DataGridColumn id=partNum headerText=Part # dataField=PART_NO editable=false width=75 sortable=true / mx:DataGridColumn id=partName headerText=Part Name dataField=PART_NAME editable=false width=450 / mx:DataGridColumn id=orderPart headerText=Order mx:itemRenderer mx:Component mx:Button width=15 height=15 toolTip=Add to Cart icon=@Embed('/assets/shoppingcart_add_16.png') click=orderItem() / /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid private function orderItem():void { var eventObj:CatalogEvent = new CatalogEvent(order); dispatchEvent(eventObj); } Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: ItemRenderer with Button
Thanks for the help everyone! I love this group!!! --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Too funny. Three heads are better than one. :) -TH --- In flexcoders@yahoogroups.com, Brendan Meutzner bmeutzner@ wrote: Joe, Scoping issues... http://livedocs.macromedia.com/flex/2/docs/0843.html Brendan On 7/6/06, g8torjoe j.stramel@ wrote: I have a dataGrid control with an itemRenderer containing a button. The button has a click handler which is defined as a private function in the script tags. Every time I try to compile I get an error: 1180: Call to a possibly undefined method orderItem. A PARTIAL piece of the code is below. I can't seem to figure out why this is happening. Thanks mx:DataGrid id=dgPart dataProvider={partList} editable=false mx:columns mx:DataGridColumn id=partNum headerText=Part # dataField=PART_NO editable=false width=75 sortable=true / mx:DataGridColumn id=partName headerText=Part Name dataField=PART_NAME editable=false width=450 / mx:DataGridColumn id=orderPart headerText=Order mx:itemRenderer mx:Component mx:Button width=15 height=15 toolTip=Add to Cart icon=@Embed('/assets/shoppingcart_add_16.png') click=orderItem () / /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid private function orderItem():void { var eventObj:CatalogEvent = new CatalogEvent(order); dispatchEvent(eventObj); } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How do I access the value in this datagrid?
I have a datagrid pulling information from a SQL database. Each row in the grid has an itemEditor with a numericStepper. I want to write back to the database the values the user enters in that control. I just can't quite figure out how to reference the different rows. Code below, thanks in advance for your help! Joe mx:DataGrid id=dgPart dataProvider={partList} editable=true width=100% mx:columns mx:Array mx:DataGridColumn id=partNum headerText=Part # dataField=PART_NO editable=false width=75 / mx:DataGridColumn headerText=Part Name dataField=PART_NAME editable=false width=350 / mx:DataGridColumn id=qty headerText=Quantity editorDataField=value width=75 mx:itemEditor mx:Component mx:NumericStepper minimum=0 maximum=5 / /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How do I access the value in this datagrid?
Thanks Tracy, Wouldn't the change event fire every time the arrows on the stepper are clicked? In other words, if I have it default to zero, and they increase it to 7 by using the arrow, that would be 7 times the change event fires, and therefore 7 updates to the dataProvider? I think that may work, but seems like a lot of overhead if my dataGrid has 100 records. I debugged my app and changed the stepper on 3 lines to try and isolate where all of the data is, but I can only find the data for the selectedItem...which may mean the change event is the only option. Am I making any sense with what I am attempting to accomplish? Thanks! Joe --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: In broad terms, since I have not done this myself, have your stepper's change event write the new value to the dataProvider. Then access the value from there using whatever logic necessary. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Thursday, June 08, 2006 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I access the value in this datagrid? I have a datagrid pulling information from a SQL database. Each row in the grid has an itemEditor with a numericStepper. I want to write back to the database the values the user enters in that control. I just can't quite figure out how to reference the different rows. Code below, thanks in advance for your help! Joe mx:DataGrid id=dgPart dataProvider={partList} editable=true width=100% mx:columns mx:Array mx:DataGridColumn id=partNum headerText=Part # dataField=PART_NO editable=false width=75 / mx:DataGridColumn headerText=Part Name dataField=PART_NAME editable=false width=350 / mx:DataGridColumn id=qty headerText=Quantity editorDataField=value width=75 mx:itemEditor mx:Component mx:NumericStepper minimum=0 maximum=5 / /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Question on CF components created by the Flex Wizard
Maybe I am being a little vague on what I am hoping for. My table has a field ID that is an auto-number field and the primary key. That is the ID I am hoping to find in the result event. I ran the code you provided and did not find the record ID as I hoped, although I found several ID properties with data (for example 897715C4-CBEB-33F9-3EA7-8ABBC7EC6F40). No where in this output do I see the record ID for the new record that was created. Again I thank you for your assistance and patience! --- In flexcoders@yahoogroups.com, Bill Sahlas [EMAIL PROTECTED] wrote: In the save_result function,the Event object has the ID returned by the CFC's save method. Do an Alert.show( ObjectUtil.toString(event) ) for the save_result method ResultEvent arg. Right now the method that we generate for you returns nothing void. private function save_result(event:ResultEvent):void { this.dispatchEvent( new Event(change) ); Alert.show( ObjectUtil.toString(event) ); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Tuesday, May 30, 2006 11:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question on CF components created by the Flex Wizard Hi Bill, I apologize that I haven't quite got this figured out yet...but I am on the cusp!!! Here is my confusion laid out in a step by step explanation: 1) I used the wizard to create an Active Record CFC for my table. (I assume that the Bean, DAO setup will yield similiar results but I may be wrong about that.) This created 3 files: parts.as, parts.cfc, partsGateway.cfc. 2) I created a Remote Object that accesses the save function of the partsGateway.cfc component. 3) I believe that the save function then calls the parts.cfc component and writes the data to the table. At the end of that function it sets variables.ID to the ID of the record it just created. 4) Here is where I am confused. Do I need to make another call to get that variables.ID value? The getID function that you mentioned is an access=public function inside the parts.cfc component and not the partsGateway.cfc component. If I need to call getID separately, I am confused on how to do that since it is not an access=remote function. Once again I REALLY appreciate your time helping me. I feel like the answer is right under my nose! :) --- In flexcoders@yahoogroups.com, Bill Sahlas bsahlas@ wrote: When this line executes in the BEAN's create method ... cfset variables.ID = qGetID.ID ... It is setting the BEAN's ID property. You access it using the Remote Object method - cffunction name=getID output=false access=public returntype=any cfreturn variables.ID /cffunction mx:RemoteObject id=dataManager showBusyCursor=true destination=ColdFusion source=myBEANObject mx:method name=getID result=result(event) fault= fault(event) / /mx:RemoteObject Does this make sense to you? Am I missing something else? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Friday, May 26, 2006 1:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question on CF components created by the Flex Wizard Bill, thank you very much for your time and response. I apologize that I am still a little confused. I am using beta 3 and the code below was generated by the wizard automatically (at the end of the create function): !--- If your server has a better way to get the ID that is more reliable, use that instead --- cfquery name=qGetID datasource=myDB_sql select ID from dbo.partsShipAddr where Name = cfqueryparam value=#local1# cfsqltype=CF_SQL_VARCHAR / and Addr1 = cfqueryparam value=#local2# cfsqltype=CF_SQL_VARCHAR / and Addr2 = cfqueryparam value=#local3# cfsqltype=CF_SQL_VARCHAR / and City = cfqueryparam value=#local4# cfsqltype=CF_SQL_VARCHAR / and State = cfqueryparam value=#local5# cfsqltype=CF_SQL_VARCHAR / and Zip = cfqueryparam value=#local6# cfsqltype=CF_SQL_VARCHAR / and Phone = cfqueryparam value=#local7# cfsqltype=CF_SQL_VARCHAR / and Email = cfqueryparam value=#local8# cfsqltype=CF_SQL_VARCHAR / and Comments = cfqueryparam value=#local9# cfsqltype=CF_SQL_VARCHAR / and PurchaseLoc = cfqueryparam value=#local10# cfsqltype=CF_SQL_VARCHAR / order by ID desc /cfquery /cftransaction cfset variables.ID = qGetID.ID This seems to be what you were referring to with creating a SELECT statement with the exact conditions of my update. I guess my confusion is that I don't see where variables.ID is getting passed back to the automatically created gateway component and then back to Flex. Does that make any sense? Thanks again!!! --- In flexcoders@yahoogroups.com, Bill
[flexcoders] Re: Question on CF components created by the Flex Wizard
OK, Bill, I think I got it. I see that the save function returns nothing (void), so I changed that to String and then added: cfreturn variables.ID / to the end of the save function and I get my result. I'm not sure if that is the right way to go about it, but it works! Thank you again for all of your time! Joe --- In flexcoders@yahoogroups.com, Bill Sahlas [EMAIL PROTECTED] wrote: In the save_result function,the Event object has the ID returned by the CFC's save method. Do an Alert.show( ObjectUtil.toString(event) ) for the save_result method ResultEvent arg. Right now the method that we generate for you returns nothing void. private function save_result(event:ResultEvent):void { this.dispatchEvent( new Event(change) ); Alert.show( ObjectUtil.toString(event) ); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Tuesday, May 30, 2006 11:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question on CF components created by the Flex Wizard Hi Bill, I apologize that I haven't quite got this figured out yet...but I am on the cusp!!! Here is my confusion laid out in a step by step explanation: 1) I used the wizard to create an Active Record CFC for my table. (I assume that the Bean, DAO setup will yield similiar results but I may be wrong about that.) This created 3 files: parts.as, parts.cfc, partsGateway.cfc. 2) I created a Remote Object that accesses the save function of the partsGateway.cfc component. 3) I believe that the save function then calls the parts.cfc component and writes the data to the table. At the end of that function it sets variables.ID to the ID of the record it just created. 4) Here is where I am confused. Do I need to make another call to get that variables.ID value? The getID function that you mentioned is an access=public function inside the parts.cfc component and not the partsGateway.cfc component. If I need to call getID separately, I am confused on how to do that since it is not an access=remote function. Once again I REALLY appreciate your time helping me. I feel like the answer is right under my nose! :) --- In flexcoders@yahoogroups.com, Bill Sahlas bsahlas@ wrote: When this line executes in the BEAN's create method ... cfset variables.ID = qGetID.ID ... It is setting the BEAN's ID property. You access it using the Remote Object method - cffunction name=getID output=false access=public returntype=any cfreturn variables.ID /cffunction mx:RemoteObject id=dataManager showBusyCursor=true destination=ColdFusion source=myBEANObject mx:method name=getID result=result(event) fault= fault(event) / /mx:RemoteObject Does this make sense to you? Am I missing something else? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Friday, May 26, 2006 1:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question on CF components created by the Flex Wizard Bill, thank you very much for your time and response. I apologize that I am still a little confused. I am using beta 3 and the code below was generated by the wizard automatically (at the end of the create function): !--- If your server has a better way to get the ID that is more reliable, use that instead --- cfquery name=qGetID datasource=myDB_sql select ID from dbo.partsShipAddr where Name = cfqueryparam value=#local1# cfsqltype=CF_SQL_VARCHAR / and Addr1 = cfqueryparam value=#local2# cfsqltype=CF_SQL_VARCHAR / and Addr2 = cfqueryparam value=#local3# cfsqltype=CF_SQL_VARCHAR / and City = cfqueryparam value=#local4# cfsqltype=CF_SQL_VARCHAR / and State = cfqueryparam value=#local5# cfsqltype=CF_SQL_VARCHAR / and Zip = cfqueryparam value=#local6# cfsqltype=CF_SQL_VARCHAR / and Phone = cfqueryparam value=#local7# cfsqltype=CF_SQL_VARCHAR / and Email = cfqueryparam value=#local8# cfsqltype=CF_SQL_VARCHAR / and Comments = cfqueryparam value=#local9# cfsqltype=CF_SQL_VARCHAR / and PurchaseLoc = cfqueryparam value=#local10# cfsqltype=CF_SQL_VARCHAR / order by ID desc /cfquery /cftransaction cfset variables.ID = qGetID.ID This seems to be what you were referring to with creating a SELECT statement with the exact conditions of my update. I guess my confusion is that I don't see where variables.ID is getting passed back to the automatically created gateway component and then back to Flex. Does that make any sense? Thanks again!!! --- In flexcoders@yahoogroups.com, Bill Sahlas bsahlas@ wrote: We thought about exposing the returned ID (ID that gets created for AUTOINCREMENT keys) in the CFQUERY RESULT, a new attribute available as part
[flexcoders] Re: Question on CF components created by the Flex Wizard
I chose the Active Record --- In flexcoders@yahoogroups.com, Bill Sahlas [EMAIL PROTECTED] wrote: Which wizard option did you use to create this? The Active Record, the Bean and DAO, or the Flex Data Service Assembler? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Friday, May 26, 2006 1:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question on CF components created by the Flex Wizard Bill, thank you very much for your time and response. I apologize that I am still a little confused. I am using beta 3 and the code below was generated by the wizard automatically (at the end of the create function): !--- If your server has a better way to get the ID that is more reliable, use that instead --- cfquery name=qGetID datasource=myDB_sql select ID from dbo.partsShipAddr where Name = cfqueryparam value=#local1# cfsqltype=CF_SQL_VARCHAR / and Addr1 = cfqueryparam value=#local2# cfsqltype=CF_SQL_VARCHAR / and Addr2 = cfqueryparam value=#local3# cfsqltype=CF_SQL_VARCHAR / and City = cfqueryparam value=#local4# cfsqltype=CF_SQL_VARCHAR / and State = cfqueryparam value=#local5# cfsqltype=CF_SQL_VARCHAR / and Zip = cfqueryparam value=#local6# cfsqltype=CF_SQL_VARCHAR / and Phone = cfqueryparam value=#local7# cfsqltype=CF_SQL_VARCHAR / and Email = cfqueryparam value=#local8# cfsqltype=CF_SQL_VARCHAR / and Comments = cfqueryparam value=#local9# cfsqltype=CF_SQL_VARCHAR / and PurchaseLoc = cfqueryparam value=#local10# cfsqltype=CF_SQL_VARCHAR / order by ID desc /cfquery /cftransaction cfset variables.ID = qGetID.ID This seems to be what you were referring to with creating a SELECT statement with the exact conditions of my update. I guess my confusion is that I don't see where variables.ID is getting passed back to the automatically created gateway component and then back to Flex. Does that make any sense? Thanks again!!! --- In flexcoders@yahoogroups.com, Bill Sahlas bsahlas@ wrote: We thought about exposing the returned ID (ID that gets created for AUTOINCREMENT keys) in the CFQUERY RESULT, a new attribute available as part of CFMX 7.x. But, the process to get this is not always supported by the backend DBs so we backed off this feature for now. You'll need to code this yourself in the release that you currently have by using a SELECT statement with a WHERE clause whose criteria is identical to the values that you used in the INSERT statement. For the final release this code is already gen'd by the wizard. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Thursday, May 25, 2006 3:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question on CF components created by the Flex Wizard I am having a little trouble following the flow of the CF components created by the wizard in Flex. I am using the save function of the gateway component and writing to the database successfully. When I create a new record I am wondering if the ID (or key - mine is ID) should be returned. I see in the component that is searches for the ID after I add it but when I debug my Flex app in the result event handler I am not finding that data. Am I making an assumption here? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software
[flexcoders] Re: Question on CF components created by the Flex Wizard
Bill, thank you very much for your time and response. I apologize that I am still a little confused. I am using beta 3 and the code below was generated by the wizard automatically (at the end of the create function): !--- If your server has a better way to get the ID that is more reliable, use that instead --- cfquery name=qGetID datasource=myDB_sql select ID from dbo.partsShipAddr where Name = cfqueryparam value=#local1# cfsqltype=CF_SQL_VARCHAR / and Addr1 = cfqueryparam value=#local2# cfsqltype=CF_SQL_VARCHAR / and Addr2 = cfqueryparam value=#local3# cfsqltype=CF_SQL_VARCHAR / and City = cfqueryparam value=#local4# cfsqltype=CF_SQL_VARCHAR / and State = cfqueryparam value=#local5# cfsqltype=CF_SQL_VARCHAR / and Zip = cfqueryparam value=#local6# cfsqltype=CF_SQL_VARCHAR / and Phone = cfqueryparam value=#local7# cfsqltype=CF_SQL_VARCHAR / and Email = cfqueryparam value=#local8# cfsqltype=CF_SQL_VARCHAR / and Comments = cfqueryparam value=#local9# cfsqltype=CF_SQL_VARCHAR / and PurchaseLoc = cfqueryparam value=#local10# cfsqltype=CF_SQL_VARCHAR / order by ID desc /cfquery /cftransaction cfset variables.ID = qGetID.ID This seems to be what you were referring to with creating a SELECT statement with the exact conditions of my update. I guess my confusion is that I don't see where variables.ID is getting passed back to the automatically created gateway component and then back to Flex. Does that make any sense? Thanks again!!! --- In flexcoders@yahoogroups.com, Bill Sahlas [EMAIL PROTECTED] wrote: We thought about exposing the returned ID (ID that gets created for AUTOINCREMENT keys) in the CFQUERY RESULT, a new attribute available as part of CFMX 7.x. But, the process to get this is not always supported by the backend DBs so we backed off this feature for now. You'll need to code this yourself in the release that you currently have by using a SELECT statement with a WHERE clause whose criteria is identical to the values that you used in the INSERT statement. For the final release this code is already gen'd by the wizard. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g8torjoe Sent: Thursday, May 25, 2006 3:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question on CF components created by the Flex Wizard I am having a little trouble following the flow of the CF components created by the wizard in Flex. I am using the save function of the gateway component and writing to the database successfully. When I create a new record I am wondering if the ID (or key - mine is ID) should be returned. I see in the component that is searches for the ID after I add it but when I debug my Flex app in the result event handler I am not finding that data. Am I making an assumption here? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms
[flexcoders] Question on CF components created by the Flex Wizard
I am having a little trouble following the flow of the CF components created by the wizard in Flex. I am using the save function of the gateway component and writing to the database successfully. When I create a new record I am wondering if the ID (or key - mine is ID) should be returned. I see in the component that is searches for the ID after I add it but when I debug my Flex app in the result event handler I am not finding that data. Am I making an assumption here? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.