Am 25.09.2013 21:07, schrieb Paul McNett:
On 9/25/13 7:27 AM, Sibylle Koczian wrote:
For a dCheckListBox on one of these panels I've overridden the update() method
like
this:
def update(self):
dabo.ui.callAfterInterval(200, self.doUpdate)
The doUpdate method of the checklist contains a print statement for debugging,
and so
I see that it is called when _another_ page of the application is opened.
Hmmm.
The checklist is placed on the first page that opens at the start of the
application,
but still I don't understand why its update method is called when the page isn't
selected.
Try setting DeferredUpdates = True for the pages you don't want immediately
updated.
I think the code in that doUpdate method is wrongly placed.
Background: I've got two tables A and B with a N:M relation and a
connecting table AB just containing the primary keys for related
records. Just like recipes and reccats in the tutorial, and the page for
working with table A is quite similar to the recipes form there. It
contains the fields for one record of table A (one recipe) and a
checklist with all records of table B (all the categories), with the
entries related to the current record checked.
So the checklist should be updated if and only if the A-record changes,
and at the start of the application. I'd use the afterRowNavigation()
method of the form, but that only works for the PrimaryBizobj. What can
I do instead? Use several forms instead of a dPageSelect?
Thank you,
Sibylle
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]