On Monday, August 16, 2010 08:44:59 am Jim Byrnes wrote:
> I am starting my first Dabo app.  I am putting some info from a Sqlite
> database in a dDropdownList.  Then I need to populate some other
> controls based on the item selected in the dDropdownList.
> 
> Before I proceeded I wanted to make sure I knew how to get the value
> from the dDropdownList so wrote a little test:
> 
> ## *!* ## Dabo Code ID: dDropdownList-dPanel
> def onHit(self, evt):
>       item = self.Form.PwordsCategories.Value
>       print item
> 
> When I run it I get this:
> 
> Dabo Error Log: Mon Aug 16 10:25:40 2010: Could not bind to
> 'categories.Catgegory'
> Reason: 'NoneType' object has no attribute 'Catgegory'
> WebSites
> 
> OK, WebSites is what I was expecting but what did I do wrong to generate
> the Dabo error?
> 
> dDropdownList RegID = PwordsCategories
> DataField = Category
> DataSource = categories
> 
> Here is the afterInitAll if that's helpful:
> 
> def afterInitAll(self):
>       pwordsBiz = self.getBizobj('pwds')
>       categories = pwordsBiz.getCategories()
>       self.PwordsCategories.Choices = categories
>       self.PwordsCategories.ValueMode = 'string'
> 
>       self.requery()
> 
> Thanks,  Jim

Maybe a mis-spellling:-)

 'Catgegory' <> 'Category'


Johnf



--- 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