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

Abandoning error rows – PB Docs 2021 – PowerBuilder Library

Abandoning error rows – PB Docs 2021

Abandoning error rows

In some cases, you may want to enable users or your application to
completely discard one or more error rows from the error DataWindow
control. This can be useful for dealing with error rows that it is not
desirable to repair.

The following table shows some techniques you can use for
abandoning such error rows.

If you want to abandon

Use

All error rows in the error DataWindow
control

The Reset function

One or more particular error rows in the error
DataWindow control

The RowsDiscard function

For more information on coding these functions, see the section called “Reset” in DataWindow Reference and the section called “RowsDiscard” in DataWindow Reference.

Example

In the following example, users can choose to abandon all error
rows in the dw_pipe_errors DataWindow control.

Providing a CommandButton

When painting the w_sales_extract window, include a CommandButton
control named cb_forgofixes. Write code in a few of the application’s
scripts to enable this CommandButton when dw_pipe_errors contains error
rows and to disable it when no error rows appear.

Calling the Reset function

Next write a script for the Clicked event of cb_forgofixes. This
script calls the Reset function:

Together, these features let a user of the application click the
cb_forgofixes CommandButton to discard all error rows from
dw_pipe_errors.


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