Uwe Grauer wrote:
> Here is my editform.onActivate code:
> def onActivate(self, evt):
>       # EditEnum
>       if not self.p_isactivated:
>               self.p_isactivated = True
>               self.PrimaryBizobj.addWhere("iid = %d" % self.p_etypiid)
>               if self.p_newrecmode:
>                       self.Caption = "%s (new record mode)" % self.CaptionStd
>                       self.requery()
>                       biz = self.getBizobj(dataSource="ENUM")
>                       biz.new()

                        biz.update()           # was missing here

>                       self.refresh()
>               else:
>                       self.Caption = "%s (show/edit record mode)" % 
> self.CaptionStd
>                       self.getBizobj(dataSource="ENUM").addWhere("iid = %d" % 
> self.p_enumiid)
>                       self.requery()

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to