For the life of me I can't get this to work.

I have a form with a button to launch a child form for data entry that
contains a dDropdownList. I want the form to be ready for data entry when
the form is shown so I've done the following:

def afterInitAll(self):
    self.new()

This is a CD app with the following for the dDropdownList:

## *!* ## Dabo Code ID: dDropdownList-dPanel-543
def afterInit(self):
    bizProjects = self.Form.getBizobj("projects")
    bizProjects.requery()
    names, pks = bizProjects.getProjects()
    self.Choices = names
    self.Keys = pks
    self.ValueMode = "Key"
    self.PosittionValue = 1

Everything works fine except for being able to change the position value. I
know this has something to do with my:
def afterInitAll(self):
    self.new()
call which automatically sets the drop down to the choice and key for 0
(which in my case is a key of  0 and a string of Please Select)

Is there a way around this?

Carey


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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]

Reply via email to