That code for the self.DataStructure is already uncommented. I commented it out to see what would happen and it still does not resolve this issue. There must be something somewhere happening because the numbers are rounded up and they shouldn't be.
I could probably write up a grid on a form and load it manually to see whether it happens there as well. No other possible ideas as to what the issue for me might be? Thanks, Tom ________________________________________ From: [email protected] [[email protected]] on behalf of Ed Leafe [[email protected]] Sent: Monday, April 30, 2012 12:44 PM To: Dabo Users list Subject: Re: [dabo-users] Precision Value in Grid Column On Apr 30, 2012, at 10:21 AM, RUSSELL Thomas wrote: > Could this be a issue with having used the AppWizard? Should I just create > everything myself with the class designer, etc? No, since the AppWizard generates normal Python code > Also, I looked in the code and am not sure where the data gets loaded from > the db to make the gui and display it, maybe in there I would assume I would > need to adjust things to make the full data show up correctly? The data gets loaded during the requery() call. But you shouldn't have to do anything there; you should only need to tell the column what it's DataType and Precision are in order for it to work correctly. There is a commented-out section in the biz/YourTable.py file (where 'YourTable' is the name of the table in your app) that defines self.DataStructure. You could try uncommenting that code and making sure that the field_type (second element of the tuple) for your decimal field is set to 'N'. -- Ed Leafe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected] ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/3eb5c64f2911f841a886ac1d5ea8c356bb2...@041-db3mpn1-025.041d.mgd.msft.net
