My class has attribute ID and Name, other attributes are dynamic, in server side, I access them by
obj[name]
that means my object could have attribute like obj.ID, obj.Name, obj["age"], obj["gender"] ....
that makes my class flexible to store different data. When display a client DataTable, my webservice will return List<myclass>, ATLAS serialize it and return js code to client side. I want to know how I can control the serialize mapping, so I can make my
class return non-property data,
wyx2000
Contributor
3388 Points
873 Posts
Dynamic columns from webservice, is it possible? thanks
Mar 21, 2006 11:12 PM|LINK
My class has attribute ID and Name, other attributes are dynamic, in server side, I access them by
obj[name]
that means my object could have attribute like obj.ID, obj.Name, obj["age"], obj["gender"] ....
that makes my class flexible to store different data. When display a client DataTable, my webservice will return List<myclass>, ATLAS serialize it and return js code to client side. I want to know how I can control the serialize mapping, so I can make my class return non-property data,
not just [{"ID":1,"Name":"test01"}]), but
[{"ID":1,"Name":"test01","Age":"20","Gender":"male"}])
any idea? thanks