DisableCommit – PB Docs 2017

DisableCommit

PowerScript function

Description

Declares that a component’s transaction updates are inconsistent and
cannot be committed in their present state.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service
instance

Return value

Integer.

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

Usage

The DisableCommit function indicates that the current transaction
cannot be committed because the component’s work has not been completed;
the instance remains active after the current method returns.

Examples

The following example shows the use of the DisableCommit in a
component method that performs database updates:

See also

EnableCommit

IsInTransaction
(obsolete)

IsTransactionAborted
(obsolete)

SetAbort

SetComplete

Which


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