dabo/lib/datanav2/Form.py

def setupPageFrame(self):
        """ Set up the select/browse/edit/n pageframe.

        Default behavior is to set up a 3-page pageframe with 'Select',
        'Browse', and 'Edit' pages. User may override and/or extend in
        subclasses and overriding self.beforeSetupPageFrame(),
        self.setupPageFrame, and/or self.afterSetupPageFrame().
        """
        currPage = 0
        ds = None
        biz = self.getBizobj()
        if biz is not None:
            ds = biz.DataSource

        try:
            currPage = self.pageFrame.SelectedPage
            self.pageFrame.unbindEvent()
            self.pageFrame.release()
            del self.__dict__["PageFrame"]
        except: pass
       
        if self.beforeSetupPageFrame():
            self.pageFrame = PageFrame.PageFrame(self, 
tabStyle=self.PageFrameStyle,
                    TabPosition=self.PageTabPosition)
            self.Sizer.append(self.pageFrame, "expand", 1)
            #Marcio Galvao 14-01-2008 @ vgsoftware
            if self.FormType != "Edit":
                self.pageFrame.addSelectPage()
                self.pageFrame.addBrowsePage()
           
            if self.FormType != "PickList":
                self.addEditPages(ds)

            self.pageFrame.SelectedpageNum = currPage
            self.afterSetupPageFrame()
            self.Sizer.layout()
            self.refresh()


Line 494:

    def requery(self, dataSource=None, _fromSelectPage=False):
        if self.FormType == "Edit":
            # it calls frm.requery():
            return self.super(dataSource)
       
        elif not _fromSelectPage:
            # re-route the form's requery through the select page's requery.
            self.pageFrame.GetPage(0).requery()


        else:
            # After the select page does its thing, it calls frm.requery():
            return self.super(dataSource)



Done, now FormType = Edit works perferct for me



_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to