On Thu, Aug 28, 2008 at 6:31 PM, Paul McNett <[EMAIL PROTECTED]> wrote:
>
>
>
> Yes, so the index of the Keys list is the index of the Choices list. But
> in this case, I was anticipating a possible next step:
>
> Choices = ["1", "2", "3", "4"]
> Keys = {0:0, 1:0, 2:1, 3:2, 4:3}
>
> IOW, both 0 and 1 map to choice "1", if that's a sensible default.
>
> Of course, the right way to do this if the default should be 1 would be
> to set it in the bizobj.
>
Awesome! It works and I no longer get the "No radio button matching '0' was
found" error any more. I'm not sure I want to set the default value in the
bizobj since I want the previously entered value to remain selected. Plus,
with my luck it won't work and I'll end up bugging you about it again, and
given the small size of this particular program, it's already had way more
time and attention than it should have had.
By the way, the thing that was causing the dropdown menu error was that I
had added the following code to initProperties() and onUpdate():
self.Choices = ["<None>"]
self.Keys = {None:0}
self.Enabled = False
when what I really wanted was this:
self.Choices = ["<None>"]
self.Keys = {0:0}
self.Enabled = False
Sorry to bother you about my problems. I'm still figuring out how things
work Dabo. But thanks for the help and for the great framework!
Mike M.
--- 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]