On Aug 17, 2009, at 10:32 AM, Nate Lowrie wrote:

> I am having a curious issue.  I am using a dTreeView to display a
> bizobj output in a tree parent form.  I also have a an editbox set to
> the same bizobj as a DataSource.  I have two events set.  The first is
> a lost focus event on the edit box, in which the Form.save method is
> called.  The second is a TreeSelection event on the dTreeView, in
> which a bizobj.moveToPK method is being called.  Now, I have a
> situation where if I edit the edit box and then click on a node that
> is not selected, the TreeSelection event is fired first, which
> performs the seek.  The lost focus event is fired next, which performs
> the save.  The result is that the change in the edit box that should
> have been applied to the old record are applied and saved on the new
> record.


        That sounds like correct behavior to me. Something else has to get  
focus before a control can lose focus.

        Since you are moving the bizobj record pointer when you select nodes  
on the tree, it probably would make sense to check for pending changes  
before doing the seek.


-- 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]

Reply via email to