On 01/18/2013 03:24 PM, Paul McNett wrote:
On 1/18/13 3:07 PM, Paul McNett wrote:
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)
As written, Dabo won't fire InteractiveChange or ValueChanged even if it was 
changed,
if the DataSource evaluates to an attribute and that attribute is callable. So, 
your
DataSource="self.Form.tempStudentBiz" makes me wonder if 
self.Form.tempStudentBiz is
a class or an instance. If it is a class, then it is callable and the events 
won't
fire. If it evaluates to a bizobj instance, that I think it should work.

However, why not just:
  DataSource=self.Form.tempStudentBiz

(without the quotes)

Paul

_______________________________________________

Good info to know - just removing the quotes did not fix. But I think you might on to something. I'll let the list know tomorrow.

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