
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi
Is there anyway to change the default handling of how DataTables are serialized in FlourineFX.
The [DataTableType("...")] only seems to work with methods and I have classes that I need to send to Flex that have complex data in them including several that have DataTables stored in publicly accessible properties. Thus far my workaround was to write a method that simply serializes a DataTable into a ArrayCollection of Hashtable's so instead of storing a DataTable in the class property I store the ArrayCollection. I've never quite grasped the concept of why all DataTables aren't automatically turned into ArrayCollection of generic objects when passed back from Flourine. In my case, I have to write an Flex app that needs to be completely agnostic to the backend server. We have to create .NET version, ColdFusion and perhaps Java versions of the backend to satisfy the requirements. Thus I need to standardize how DataTables are sent back to match how CF or Java would.
A sample case I face would be:
on Facade calling a method called login(username, password) returning an instance of User if login successful. User contains information about the user, the basics stuff as well as information about what tasks they need to perform today and what parts of the system they have access to. In theory I could call 3 times to the server to do this, but why call the server needlessly when one call would suffice. In an ideal world the concept of the [DataTableType("...")] would apply to public properties as well as methods.
I will admit I'm not a heavy hitter in terms of C# programming so before I start tearing into the source code of FlourineFx or pulling my hair completely out I thought I'd ask.
Sincerely
Mark R. Jonkman
_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com