On Wed, Oct 13, 2010 at 9:16 PM, John Fabiani <[email protected]> wrote:
> On Wednesday, October 13, 2010 07:01:13 pm John Fabiani wrote:
> > Choices = Names, Keys = keys)
> should be
> Choices = names, Keys = keys
>
> Johnf
>
Just thought I'd post an update.
Got the dDropdownList working flawlessly and even took care or the Non value
error (for new entry) I got once I did get the dropdown working with the
following in my ui\PagEditRecords.py file:
## Field records.customerID
label = self.addObject(dabo.ui.dLabel, NameBase="lblcustomerID",
Caption="customerID")
customerBiz = self.Form.getBizobj("records")
names, keys = customerBiz.getCustomers()
objectRef = self.addObject(dabo.ui.dDropdownList,
NameBase="customerID",
DataSource="records", DataField="customerID",
ValueMode="Key", Choices = ["Select Customer"] + names, Keys = [0] + keys)
I have 3 such drop downs on this one form and all is right with the world.
My next question is on rearranging the default AppWizard layout, but I'll
post that to a new thread if needed after I do some reading / research
myself.
My hat's off to Ed & Paul. You have really created a great framework!!
Thanks
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]