On Tuesday 25 December 2007 10:34 am, Ed Leafe wrote:
> On Dec 25, 2007, at 1:13 PM, Adrian Klaver wrote:
> >>    Well, it's actually in the bizobj/cursor combo, but that's not an
> >> important distinction here.
> >
> > So the data I am seeing in the form elements are an illusion?
> >
> > If the data lived solely in the bizobj then form_element.update()
> > would be
> > unnecessary as the element would always reflect the current state
> > of the
> > bizobj.
>
>       By "data" I mean an organized set of rows of information, not any
> one piece. In VFP terms it would be called a 'cursor'; in Dabo terms
> it's a 'DataSet'. But I think you're getting hung up on semantics;
> I'm trying to explain the way that data is handled in Dabo so that
> you can use that knowledge to understand how your app is working better.

I thank you for your explanations, they are helping me understand. I do think 
it is more than semantics, though. I will try to formulate a more articulate 
answer later. If I don't go and socialize my life might be forfeit.

>
> > My sequence of operations is
> > bizobj.save()-->bizobj.requery(()-->self(form).update().
> > It is not not until I do the update() that I see the non-Dabo change.
>
>       Where is this code being written/run from? I'll assume it's the
> form; in that case you should be calling:
>
> self.save()
> self.requery()
>
> ...and all the associated update stuff is handled for you. Because
> you're calling directly to the bizobj layer, which doesn't have any
> 'knowledge' of UI controls, of course you're not seeing the UI
> updated. Calling bizobj.requery() means: tell the bizobj to get the
> latest copy of data from its DataSource. Calling form.requery()
> means: tell the bizobj to requery(), and then tell the controls to
> get the latest copy from their DataSource.
>
>       But this goes back to what I was saying above: that the data exists
> in the bizobj's cursor. Once you call bizobj.requery(), the non-Dabo
> change is present in the bizobj's DataSet. But because you are not in
> the UI layer, of course the UI won't show it yet.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to