Mike Mabey wrote:
> On Thu, Aug 21, 2008 at 1:43 PM, Paul McNett <[EMAIL PROTECTED]> wrote:
>>
>>
>> Because a dRadioList always needs to have one of the options selected,
>> and you've offered a Value of None which isn't present in the Keys and
>> Choices. See my mail in dabo-users.
>>
>> Paul
>>
> 
> Thanks, that explanation helps.  So, excuse my ignorance, but how would I
> set a default value for the radio list?  Better yet, where is Dabo calling
> whatever it is that is looking for a radio button matching '1'?  IOW, where
> is this error coming from that I originally posted:
> 

You have to set DefaultValues in your bizobj to preset your field for a
new record:

class MyBizobj(dabo.biz.dBizobj):
    def initProperties(self):
        self.DataSource = "MYTABLE"
        self.KeyField = "iid"

        self.DataStructure = (
            ("iid", "N", True, "MYTABLE", "iid"),
            ("rlist", "N", False, "MYTABLE", "rlist"),
            )

        self.DefaultValues['rlist'] = 1

Uwe




_______________________________________________
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