Forwarded to the list since I don't think John meant to sent it only to me.


-------- Original Message --------
Subject: Re: [dabo-users] event does not fire
Date: Fri, 18 Jan 2013 14:31:11 -0800
From: John Fabiani <[email protected]>
Reply-To: [email protected]
To: Paul McNett <[email protected]>

On 01/18/2013 11:42 AM, Paul McNett wrote:
> On 1/18/13 8:33 AM, John Fabiani wrote:
>>
>> I have an interesting problem.  I have a
>> "dDropdownList.bindEvent(dEvents.InteractiveChange, self.statechanged)" that 
>> does not
>> fire when the list item is changed (via the user).  If I "
>> dDropdownList.raiseEvent(dEvents.InteractiveChange)" all works. Even 
>> stranger is the
>> fact I have the almost the same dDropdownList on the same page and it works 
>> correctly
>> (only difference is the RegID).
> Looking at the code, depending on how the control is bound (bizobj, method, 
> property,
> whatever) in some cases the code that raises ValueChanged and 
> InteractiveChange may
> not be reached. So, how is the control bound?
>
> Paul
>
>

Here's the actual code - does anyone see something wrong.  The Log does
not show the event.

gs1 = dabo.ui.dGridSizer(MaxCols = 3, HGap = 3, VGap = 5, Name =
'newClientID')
        gs1.append(dabo.ui.dLabel(self, Caption = "State", ForeColor =
"Red"))
        state_choices = self.Form.states
        statetxt =dabo.ui.dDropdownList(self, Choices = state_choices,
RegID = 'n_state', Width=65,  DataSource ="self.Form.tempStudentBiz",
DataField = "state_1")
        statetxt.bindEvent(dEvents.InteractiveChange, self.statechanged)

Johnf


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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