On Friday, May 18, 2012 12:05:42 PM Ed Leafe wrote: > On May 18, 2012, at 11:47 AM, John Fabiani wrote: > > "What I think should happen is we should require data structures be > > defined. " > > > > I think you have been on the right track for years. Using data > > structures solves several of the issues I've run into over the years. > > I started thinking about this about a month ago when I asked a question > > on how the framework worked with DataStructure() (I didn't get an > > answer). > > I have to disagree here. I can imagine use cases where different bits of > data is returned from the query, and a pre-defined data structure would not > be possible. > > The problem I see is that you have grids with no data. That is a use > case > that I did not test against, as none of my apps need that. I would much > rather you create a small test app that demonstrates the issue, and I can > use that to fix whatever isn't working correctly. Ideally, you could define > the data structure so that that it works fine, but when commented out shows > the traceback. > > > -- Ed Leafe
Yes I discovered the issue with empty grids but it goes beyond the grids. It happens when ever I change the where clause and simple controls that depend on the alias data fields don't work. All because the python datatype is None. Paul has suggested using get/set FieldVal which is taking it even further than I considered. Would using xFieldVal() solve the issues that the data structure would not? The dbi adapter provides the datatype - it would be dynamic. Like everyone else my time is thin - feeding family etc... But if I can I will provide some code. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/5438596.hsZITbsc59@linux-12
