Hi,

I have a BizObj assigned to my dForm.
and I have a Panel on that Form which contains a dabo.ui.dListControl. Sample code below. The question now is what is the Dabo way of filling the ListCtrl with data from the rows in the BizObj?

adi


class noteListPanel(dabo.ui.dPanel):
    def initProperties(self):
        self.pages = {}

    def afterInit(self):
        self.Sizer = dabo.ui.dSizer("vertical")

        self.pageFrame = self.addObject(dabo.ui.dPageFrame)
        assert(isinstance(self.pageFrame,dabo.ui.dPageFrame))
        self.Sizer.append(self.pageFrame, "grow", 1)

list = self.pageFrame.insertPage(NOTE_PAGE_LIST,dabo.ui.dListControl, "List")
        self.pages['list'] = list
        assert(isinstance(list,dabo.ui.dListControl))
        list.addColumn('Notes')

tree = self.pageFrame.insertPage(NOTE_PAGE_TREE,dabo.ui.dTreeView, "Tree")
        self.pages['tree'] = tree
        assert(isinstance(tree,dabo.ui.dTreeView))

    def activatePage(self, page):
        try:
            page = self.pageFrame.Pages[page]
            page.Raise()
        except:
            pass


class freeNotesFrame(dabo.ui.dForm):
    def initProperties(self):
        self.Caption = "freeNotes"

    def afterInit(self):
        self.lPanel = self.splitter.addObject(noteListPanel)
        primaryBizobj = bizNotes(self.connection)
        # Register it with dForm:
        self.addBizobj(primaryBizobj)



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

Reply via email to