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

Using a transaction object with the Web ActiveX – PB Docs 125 – PowerBuilder Library

Using a transaction object with the Web ActiveX – PB Docs 125

Using a transaction object with the Web ActiveX

When to use a separate transaction object

Both the Web ActiveX and the Transaction Object control can
establish a database connection. The one you use depends on your
needs.

There are two main reasons to use the Transaction Object control:

  • You can make one database connection for several
    Web ActiveX controls, saving the overhead of multiple connections.

  • You can control transaction processing with Connect
    and Disconnect methods, equivalent to the SQL statements CONNECT and DISCONNECT.
    If the AutoCommit property is set to false, you
    can control when an update is committed or rolled back with Commit and Rollback methods.

If you have only one control and are simply retrieving data,
you do not need either of these features. Instead of instantiating
a separate control, you can set the connection properties of the
Web ActiveX itself and allow it to connect and disconnect for each
database access.

Instantiating a transaction object

To use a transaction object with the Web ActiveX, you add
an OBJECT element to the Web page. You can provide the connection
information in HTML PARAM elements or in JavaScript statements.

The HTML to instantiate a transaction object looks like this:

To connect to the DBMS and associate the transaction object
with a Web ActiveX, you would write JavaScript like this:

For more information about using the Web ActiveX and Transaction
Object control, see the DataWindow Programmers Guide.


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