On 8/16/10 1:40 PM, M. Milanuk wrote: > On 8/16/2010 7:25 AM, Paul McNett wrote: >> The latter one instantiates the Recipes bizobj, and binds it to the local >> name >> bizRecipes. It then adds the instance to the form (self.addBizobj). The >> former >> (tutorial) version does this in one line, and doesn't bother binding it to a >> local >> name (line 27). >> > > Okay, I think I'm with you so far... other than is there a benefit one > way or the other?
If you need a reference to the created object to use it again in the same method, then there's a benefit to binding the object to a local name. If not, then there's no benefit so may as well skip it. >> Two completely different things. self.requeryCategories() requeries the >> Reccats >> bizobj; self.addBizobj(bizRecipes) adds the Recipes bizobj to the form. >> > > So after adding the Recipes bizobj, we then also add a Reccats bizobj > and add the requery code to update the categories? Yep! Paul _______________________________________________ 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]
