Użytkownik Paul McNett napisał: > I do joins like this sometimes. I have a fillDerivedFields() method in my > bizobj that > fills in the proper values from the joined table to avoid requerying the > entire > dataset to do so. I call self.fillDerivedFields() from bizobj hook methods > like > afterSave() and afterCancel(). Targeted queries are executed to get just the > needed > values for the needed row(s), and it works well. >
Temporary, I overwrote setFieldVal() method where I introduced additional dictionary for such field values. The rest logic works like yours. > Perhaps cancel() could be enhanced to restore the old values of the > NonUpdateFields > automatically, like you suggest. Off the top of my head I can't think of a > reason why > it couldn't be done, or even why we wouldn't want to do it. > Maybe I'm wrong, but it seems easy. It's enough to add them to memento and exclude from changed field detection. -- Regards Jacek Kałucki _______________________________________________ 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]
