ResetUpdate – PB Docs 150

ResetUpdate method (DataWindows)

Description

Clears the update flags in the primary and filter buffers
and empties the delete buffer of a DataWindow or DataStore.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Web

Server component

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

[PowerBuilder]

[Web DataWindow server component]

[Web ActiveX]

Argument

Description

dwcontrol

The name of the DataWindow control, DataStore,
or child DataWindow in which you want to reset the update flags

Return Values

Returns 1 if it succeeds and –1 if an error occurs.

If dwcontrol is null, in PowerBuilder
and JavaScript the method returns null.

Usage

When a row is changed, inserted, or deleted, its update flag
is set, making it marked for update. By default the Update method
turns these flags off. If you want to coordinate updates of more
than one DataWindow or DataStore, however, you can prevent Update from
clearing the flags. Then, after you verify that all the updates
succeeded, you can call ResetUpdate for each
DataWindow to clear the flags. If one of the updates failed, you can
keep the update flags, prompt the user to fix the problem, and try
the updates again.

You can find out which rows are marked for update with the GetItemStatus method.
If a row is in the delete buffer or if it is in the primary or filter buffer
and has NewModified! or DataModified! status, its update flag is set.
After update flags are cleared, all rows have the status NotModified! or
New! and the delete buffer is empty.

Examples

These statements coordinate the update of two DataWindow
objects:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x