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

EnableCommit – PB Docs 2019 – PowerBuilder Library

EnableCommit – PB Docs 2019

EnableCommit

PowerScript function

Description

Declares that a component’s work may be incomplete but its
transaction updates are consistent and can be committed.

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 EnableCommit function indicates that the component should not be
deactivated after the current method invocation. However, if the component
instance is deactivated, the current transaction can be committed.

Examples

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

See also

DisableCommit

IsInTransaction
(obsolete)

IsTransactionAborted
(obsolete)

Lookup (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