RE: [flexcoders] Re: complex object in cairngorm
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Tim HoffEnviado el: lunes, 24 julio, 2006 8:52Para: flexcoders@yahoogroups.comAsunto: [flexcoders] Re: complex object in cairngorm Hi Robert, On the server side you can design your data model as a relational database. In your case, the flat tables would be: Group: groupId, groupName Product: productId, groupId, productName, imageURL, price Model: modelId, productId, color This is a similar structure to the VO, but isn't limited to one VO definition.Youcan construct and deconstruct the VO's sent and receivedfrom the application with either SQL queries, stored procedures, CFC's, or whatever method your server side technolgy uses. This is just one approach; java-based back-ends can be a little more integrated. But, by keeping the server-side data in relational tables, you add a little more flexibility for future needs. -TH--- In flexcoders@yahoogroups.com, Robert WÄ s [EMAIL PROTECTED] wrote: In the examples that i know i not found solution how persist complex objects in server side (for me sql) storage. For example following structure: Group -name Product -name -imageURL -price Model -color Group has 1...n Products, Product has 1...n Models Temporary i have VO for every objects, but VO are bloated if i use it in different context, for example sometimes my Product should has image I manage that structure view in swf but if i want persist them that should i do - just send whole tree to server via VO and create sql queries? I use cairngorm, amfphp. -- Robert Was __._,_.___ -- 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. __,_._,___
RE: [flexcoders] Flex Store SendCart()
Hi I am try to implement function SendCart() for Flex Store Example. I don´t know how I can send a email with the items selected when click on Submit Order I am trying to send one Array with this information but my .ASP not work OK. When the user click On Submit Order [Bindable] private var misItems:Array = []; private function Manda():void{ var items:Array = productList.items; for (var i:int=0; i items.length; i++) { var product:Product = items[i].product; misItems.push({Nombre:product.name, Precio:product.price, Cantidad:product.qty}); trace(misItems[i].Nombre + - + misItems[i].Precio + - + misItems[i].Cantidad); } conexion.send(misItems); } I configured my HTTPServices mx:HTTPService url=http://localhost/email.asp; id=conexion method=POST resultFormat=text And then. my .ASP % Set Mail = Server.CreateObject(Persits.MailSender) Mail.Host = smtp.xxx..com Mail.From = Request.Form(myemail) Mail.FromName = Pepe Lopez Mail.AddAddress [EMAIL PROTECTED], Pepe Lopez Mail.Subject = Request.Form(asunto) Mail.Body = Mail.Body Request.Form.Count VbCrLf(If I select 2 phones for examples Request.Form.Count return 2) For index = 1 to Request.Form.Count Mail.Body = Mail.Body Request.Form(misItems[index].Nombre index) VbCrLf Mail.Body = Mail.Body Request.Form(misItems[index].Precio index) VbCrLf Mail.Body = Mail.Body Request.Form(misItems[index].Cantidad index) VbCrLf next Mail.Send % I dont know how to stract misItems[index].Nombre this value for example Nokia 3210 Please I need your help Thaks To All. Cesar -- 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] Flex Store SendCart()
Hi I am try to implement function SendCart() for Flex Store Example. I don´t know how I can send a email with the items selected when click on Submit Order I am trying to send one Array with this information but my .ASP not work OK. When the user click On Submit Order [Bindable] private var misItems:Array = []; private function Manda():void{ var items:Array = productList.items; for (var i:int=0; i items.length; i++) { var product:Product = items[i].product; misItems.push({Nombre:product.name, Precio:product.price, Cantidad:product.qty}); trace(misItems[i].Nombre + "-" + misItems[i].Precio + "-" + misItems[i].Cantidad); } conexion.send(misItems); } I configured my HTTPServices mx:HTTPService url=""http://localhost/email.asp">http://localhost/email.asp" id="conexion" method="POST" resultFormat="text" And then. my .ASP % Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "smtp.xxx..com" Mail.From = Request.Form("myemail") Mail.FromName = "Pepe Lopez" Mail.AddAddress pepe@gmail.com, "Pepe Lopez" Mail.Subject = Request.Form("asunto") Mail.Body = Mail.Body Request.Form.Count VbCrLf (If I select2 phones for examples Request.Form.Count return "2") For index = 1 to Request.Form.Count Mail.Body = Mail.Body Request.Form("misItems[index].Nombre" index) VbCrLf Mail.Body = Mail.Body Request.Form("misItems[index].Precio" index) VbCrLf Mail.Body = Mail.Body Request.Form("misItems[index].Cantidad" index) VbCrLf next Mail.Send % I dont know how to stract "misItems[index].Nombre" this value for example Nokia 3210 Please I need your help Thaks To All. Cesar __._,_.___ -- 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. __,_._,___
[flexcoders] Flex Store SendCart()
Hi I am try to implement function SendCart() for Flex Store Example. I don´t know how I can send a email with the items selected when click on Submit Order I am trying to send one Array with this information but my .ASP not work OK. When the user click On Submit Order [Bindable] private var misItems:Array = []; private function Manda():void{ var items:Array = productList.items; for (var i:int=0; i items.length; i++) { var product:Product = items[i].product; misItems.push({Nombre:product.name, Precio:product.price, Cantidad:product.qty}); trace(misItems[i].Nombre + "-" + misItems[i].Precio + "-" + misItems[i].Cantidad); } conexion.send(misItems); } I configured my HTTPServices mx:HTTPService url=""http://localhost/email.asp">http://localhost/email.asp" id="conexion" method="POST" resultFormat="text" And then. my .ASP % Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "smtp.xxx..com" Mail.From = Request.Form("myemail") Mail.FromName = "Pepe Lopez" Mail.AddAddress pepe@gmail.com, "Pepe Lopez" Mail.Subject = Request.Form("asunto") Mail.Body = Mail.Body Request.Form.Count VbCrLf (If I select2 phones for examples Request.Form.Count return "2") For index = 1 to Request.Form.Count Mail.Body = Mail.Body Request.Form("misItems[index].Nombre" index) VbCrLf Mail.Body = Mail.Body Request.Form("misItems[index].Precio" index) VbCrLf Mail.Body = Mail.Body Request.Form("misItems[index].Cantidad" index) VbCrLf next Mail.Send % I dont know how to stract "misItems[index].Nombre" this value for example Nokia 3210 Please I need your help Thaks To All. Cesar __._,_.___ -- 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. __,_._,___