Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

datastore updates and logical unit of work

34 views
Skip to first unread message

Lascaris Georgia

unread,
Jul 21, 2003, 11:02:38 AM7/21/03
to

Quite often for doing our updates we are using not only dw ( u_dw) but
also datastores (n_ds) .

The problem is, that the datastores seems not to be spontaneously added to
the logical unit of work . For the moment we manually add then into the
ipo_updateobjects array .

Is there a way to register the datastores into to logical unit of work ?

All our windows are inherited from w_master and we are using PB 6.5.1.

Thank You

Philip_Salgannik

unread,
Jul 21, 2003, 12:26:53 PM7/21/03
to
Well, if by "manually add then into the ipo_updateobjects array" you mean
that you are using of_SetUpdateObjects of pfc_w_master, then that's the way
to go.
There should NOT be "a way to register the datastores into to logical unit
of work".
If you want a certain subclass of datastores to "automagically" get
appended to the ipo_updateobjects array of you windows, then you can do
something along these lines:
1) Overload pfc_w_master's of_SetUpdateObjects to take n_ds as an argument
and make it public, in it append the valid n_ds to w_master's
ipo_updateobjects array, preceding it with a of_GetParentWindow call on the
passed argument to make sure that the parent window of the datastore was
set to THIS window.
2) Overwrite n_ds's of_SetParentWindow function to do a call to
iw_parentwindow.of_SetUpdateObjects(this) after a successfull setting of
iw_parentwindow reference.

Lascaris Georgia

unread,
Jul 22, 2003, 3:16:50 AM7/22/03
to
Thanks a lot !!!!

<Philip_Salgannik> wrote in message
news:AFA94A893832407F005A59D485256D6A.0058016385256D6A@webforums...

0 new messages