[flexcoders] Re: Dynamically create a Value Object...

2010-03-03 Thread aceoohay
So don't change the backend. I am sure if you tried you could write a group of generic modules in CF. Here is an example of what I wrote using fluorine/asp.net. This version does not have the security I built in. You pass in an SQL statement and it sends back an array collection. I have a CF

[flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread Laurence
I should also mention we're using CF9 on the back-end. So the VOs have to be defined in .CFC files as well. So if anyone can tell me how to do dynamic VOs in both CF9 and Flex, that'd be wonderful. Alternatively, if there's a way to transfer data between Flex and CF9 that doesn't involve VOs

[flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread Laurence
We're using an SQL database with a ColdFusion intermediary between the Flex app and the database... I've used XML files to configure a couple of the components -- give the user the option to change the layout of a component, for example, by modifying the contents of a config.xml file, that

Re: [flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread Jake Churchill
You could probably try having a base VO for all the properties that you know will be there and include a single property in the VO which would be either a Dictionary or a generic object used as an associative array to handle all your custom properties. Then just populate the VO like you normally

[flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread Laurence
Thanks for the suggestion... I may be able to make that work... If I understand you correctly, I'd need to return an array-within-an-array kind of thing... My normal array of VOs, with one property of each VO being an array itself... Sounds easy enough... But I've tried before to get CF to

[flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread aceoohay
First, let me say that I have been roundly criticized for taking the approach of NOT using VOs. Second, I use .NET FluorineFX. Having said that, I created my applications in such a way that my middle tier has a few generic methods for querying, updating, inserting data from a DB (usually

Re: [flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread Peeyush Tuli
*Having said that, I created my applications in such a way that my middle tier has a few generic methods for querying, updating, inserting data from a DB (usually Oracle). There is also a generic middle tier routine to handle stored procedures as well. My presentation layer, Flex, builds a SQL

[flexcoders] Re: Dynamically create a Value Object...

2010-03-02 Thread aceoohay
See what I mean, I get criticized roundly. Of course I have security enabled, including passing constantly changing tokens (unique for each user for each login for each transaction) from the front end to the backend, that need to match. I suppose if there were a clever user that had lots of