On Aug 25, 2010, at 6:06 PM, Jim Byrnes wrote:
> I'm not sure if that should be dataSource or DataSource. I tried both
> but neither saved the data. Using DataSource produced this error:
> TypeError: save() got an unexpected keyword argument 'DataSource'.
> dataSource produced no error.
In Dabo, parameters begin with a lower-case letter, unless they are
properties being passed to the object upon creation. So the proper parameter
name for a method such as save() should be 'dataSource'.
Having said that, passing this parameter should be completely
unnecessary. I assume that you've added the bizobj to the form; otherwise the
textbox would never get its initial value from the database. Do you have more
than one bizobj on the form? Or just the one that is bound to the textbox.
> I put a print in the OnHit to be sure it is being called and it is. I
> tried one other thing. I made a change and then closed the app. I was
> not prompted to save my change. I don't know if this is significant or not.
It might be, but only in that it tells us that the form is not
detecting any changes in any of your data-bound controls.
-- 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]