Ed thank you for the quick answer. I found the problem, I had to add self.addBizobj(biz) to the InitAll-Event. 1) Attachements are striped form the mail. Is it possible to copy a screeshot into the mail or will it be striped too? 2) The code of the onHit-Event of the next-Button is: self.Form.next() self.Form.tbRmTe.Value = self.Form.gridClient.CurrentCellValue In the TextBox with the RegID tbRmTe I see the CurrentCellValue of the last and not the current record, why? gridClient is the RegID of the grid.
-- Reto > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] > Im Auftrag von Ed Leafe > Gesendet: Saturday, January 01, 2011 11:59 PM > An: Dabo Users list > Betreff: Re: [dabo-users] Grid with prior- and next-button > > On Jan 1, 2011, at 9:27 AM, bluewin wrote: > > > I use Windows 7 and have installed dabo on drive d:. My small example > is > > stored on drive e:. All files including the SQLite Data-File > tutorial.sqlite > > are stored in the same directory e:\14\09_dabo_fw\grid. When I run > > grid_form.py I can move from record to record with the up and down > > arrow-keys. I can see how the current-record (yellow background) > moves up > > and down. When I use the button prior and next it doesn't work. In > the onHit > > event-handlers I wrote self.form.prior() and self.form.next(). > > > > Questions: > > > > 1) Why must I enter the whole path > e:\14\09_dabo_fw\tutorial.sqlite and > > not only tutorial.sqlite in the connection-file con_grid.cnxml? > > Because the standard directory layout in Dabo has the 'db' > directory off of the main file location, making relative pathing very > problematic. > > > 2) Why do the two buttons not work the same way as the arrow- > keys? > > Capitalization. Python is case-sensitive, and the reference to > the form is 'self.Form', not 'self.form'. Try correcting that and let > me know if it works. > > > As an attachment I send a zip-file including the grid-directory with > all > > files. > > As you've certainly noticed, attachments are stripped from the > mail list. No need to send the file to hundreds of people who don't > need it! In the future, you can post code snippets here or on > dabo.codepad.org. If you have a particularly tough problem, Paul or I > may ask you to send a zip file directly to us to debug. > > > > -- 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/6EBA63AA-36FD-491C-8B36- > [email protected] _______________________________________________ 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/001701cbaa96$04af8860$0e0e99...@[email protected]
