IsInTransaction (obsolete) – PB Docs 2017

IsInTransaction (obsolete)

PowerScript function

Description

Indicates whether a component is executing in a transaction.

Obsolete function

IsInTransaction is obsolete, because EAServer is no longer
supported since PowerBuilder 2017.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service
instance

Return value

Boolean.

Returns true if the component is executing as part of a transaction
and false if it is not.

Usage

Component methods can call IsInTransaction to determine whether they
are executing within a transaction.

Methods in components that are declared to be transactional always
execute as part of a transaction.

Methods in components that have a transaction type of Supports
Transaction may or may not be running in the context of an
EAServer transaction, depending on whether the component is instantiated
directly by a base client or by another component. In components that have
this transaction type, you can use IsInTransaction to determine whether
the component is running in a transaction.

The IsInTransaction function corresponds to the isInTransaction
transaction primitive in EAServer.

Examples

The following example shows the use of the IsInTransaction
function:

See also

EnableCommit

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