I'm sorry for my slow response. Now that I have month-end closed out with my client, I can get back to getting my Dabo app to work.
I took Ed's advice and tried simply adding self.Form.update() to onGridCellSelected, but the detailed view on the right is still blank. I have played around a bit, and don't see any different behavior. My print is getting run, so I know control is getting passed to onGridCellSelected correctly. If you don't have any ideas, I'll start implementing Paul's suggestion of two hierarchical classes. During my playing around I had two questions: 1. The first time the form opens, I'm getting this error: File "/home/richard/Desktop/dabo/dabo/db/dCursorMixin.py", line 844, in getFieldVal dabo.dException.FieldNotFoundException: Field '<built-in function id>' does not exist in the data set Any ideas about the <build-in function id> not existing? 2. While playing around I commented all of the addField statements in my BizObj, yet my form still has data when the application is run. The application won't run when I comment out the DataSource, so I'm pretty sure my bizObj is getting referenced correctly. How does the UI get data if it doesn't come through the bizObj? I thought 3-tier meant that the UI and the Database couldn't talk at all. Is the framework MVC style where the View can get data directly from the Model but must write through the Controller? Thank you for your help. Richard Esplin On Tuesday 30 September 2008 12:20:27 Ed Leafe <[EMAIL PROTECTED]> wrote: > On Sep 30, 2008, at 12:55 PM, Richard Esplin wrote: > > My application UI is divided into two parts. The left side is a list > > of > > records pulled from a table. The right side is the detailed view of > > the > > record selected in the list on the left. The user can examine this > > detailed > > view, change it, and save it back into the database. This is a one- > > to-one > > relationship, as both grids will come out of the same database table. <snip> > If the data is all from the same table, then you only need one > bizobj. When a new record is selected on the left side, all you have > to do is issue self.Form.update(), and all the bound controls will > update to show the current record's values. <snip> > -- 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]
