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

Select Lock – PB Docs 2022 – PowerBuilder Library

Select Lock – PB Docs 2022

Select Lock

In REST APIs, each request must contain all of the information
necessary to understand the request, and cannot take advantage of any
stored context on the server. This is known as the stateless
constraint of REST. Stateless does not mean there is no state; but the
state is maintained on the client side instead of the server
side.

However, in PowerBuilder, the transactional information must be
maintained on the server side in order to provide context for
subsequent transactions.

Due to this difference, the REST APIs in PowerServer have been
adjusted to support the PowerBuilder transactions. When the REST APIs
handle requests for Update, Insert, and Delete, a transaction will be
started automatically, the transactional information will be stored on
the server, and a default transaction timeout value is set. This will
cause some differences to the Select Lock scripts. For example,

Original PowerScript:

Must be modified like below to work in PowerServer:

The “trick” is to hold the transaction open:


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