Thanks Ed, really appreciate your (and everyone else's) time in walking me through this.
> Sounds to me like you're taking snapshots of the data, and > displaying them independently of each other. Is that correct? If so, > does the data need to be read/write, or is it for display only? > That is correct. They are going to be read only, except for one extra field (not actually coming from the database) that Paul has already explained how to create (with a cunning piece of SQL, something like "0 as test_needs_rerun" in the bizObj definition. Later I'm going to have to figure out how to make that an editable check box in the grid, but I'm pretty sure I saw some examples in the dabodemos I need to look into.) The form is going to be used to display test results, and being able to compare multiple views on the test results will be a big boon. > > And, is there a shorthand way to update the datasource on all the > > contained controls in the panel? (Not that looping is too difficult > > :-) ) That could go in afterInit, correct? > > Probably you'll have to add some logic to your bizobj class to > handle these 'snapshots'. There is already a similar facility for > this in the _CurrentCursor property, which is designed to handle > multiple sets of child records, and this cursor is based on the key > value of the parent. Perhaps you could create a key value for each of > your viewer panels, update bizobj._CurrentCursor when the active > panel changes. Take a look at that property and let me know if it > makes any sense to you. > > Managing the 'active' viewer will be the trickiest part of the whole > thing, especially if you are planning on being able to edit and save > changes to the data. > I think I understand what you're saying, but I don't know how to hook up the underlying plumbing. If _CurrentCursor is changed, I assume a requery is needed. Won't this cause all things bound to this data source to update (ie all viewerPanels would end up with the same data?) Sorry, can you please explain "key value of parent" above, and how I might use it? I don't have dabo on this machine, and _CurrentCursor isn't in the online API docs- but I think it's safe to assume I'm not going to understand it. Could you explain it a bit further? Luckily I don't need to write any updates! And I think the logic to handle _CurrentCursor should be pretty straightforward- the Panels should only update when the user clicks on the 'update this panel with data that meets the currently selected constraints' button. So I think I could put all the handling in that buttons onHit(). Looking forward to reading your response later- Julian _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
