On Aug 7, 2010, at 12:55 PM, Jim Byrnes wrote:
> Dabo info: = Platform: GTK
> Python Version: 2.6.5 on linux2
> Dabo Version: Version 0.9.2; Revision ~5924
> UI Version: 2.8.11.0 on wxGTK (gtk2)
>
> Note: I am using the Sqlite zip file not MySQL
>
> Everything has worked until I tried the section: Creating a Dabo
> Application From Scratch --> Populating the ClientList.
>
> I have saved/closed/restarted the class designer but when I select run..
> from the menu I get this error in a pop up box:
>
> dForm_47486 object has no attribute 'ClientList'
'ClientList' should be a reference to the dropdown list containing the
client names and IDs. There is a property named 'RegID' that needs to be set to
the name 'ClientList', and setting this property will automagically create the
reference in the form. From the tutorial:
"With the dropdown selected, go to the prop sheet, and set the DataSource
property to "hours", and the DataField property to "clientfk". We also need to
set the ValueMode property to "Key" to tell Dabo that we don't want to store
the displayed text string, but rather the associated Key value. How do we get
the displayed strings and keys into the control? Select the control, and set
its RegID property to 'ClientList'. As we'll cover later, the RegID is a unique
identifier within a form that allows for simple, unambiguous object references."
From the error, my guess is that you did not set the RegID of the
dropdown.
-- Ed Leafe
_______________________________________________
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]