Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetUpdateStatus – PB Docs 2017 – PowerBuilder Library

GetUpdateStatus – PB Docs 2017

GetUpdateStatus

method (DataWindows)

Description

Reports the row number and buffer of the row that is currently being
updated in the database. When called because of an error,
GetUpdateStatus reports the row that caused the error.

Obsolete method

GetUpdateStatus is obsolete and will be discontinued in a future
release. You should replace all references to GetUpdateStatus as soon as
possible. The update status is available as an argument in the DBError
and SQLPreview events.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control or child
DataWindow.

row

A variable that will store the number of the row that
will be updated or for which an update was
attempted.

dwbuffer

A value of the dwBuffer enumerated datatype
identifying the DataWindow buffer that contains the row being
updated. For a list of valid values, see DWBuffer.

Return value

Returns 1 if it succeeds and -1 if an error occurs. The number and
buffer of the row currently being updated are stored in row and
dwbuffer.

If any argument value is null, the method returns null.

Examples

These statements in the script for the DBError event for a
DataWindow control obtain the text of the error message, display a message
box with the number of the row in which the error occurred and the error
message, and then make the row with the error the current row.

Additional code in the IF statement considers the case of the bad
row being in the filter or delete buffer. If the row is in the filter
buffer, the script changes the filter so that the user can edit the row in
the primary buffer. If the row is in the delete buffer, the message box
displays a slightly different title:

See also

GetItemStatus


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