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

Working with a DataStore – PB Docs 80 – PowerBuilder Library

Working with a DataStore – PB Docs 80

Working with a DataStore

To use a DataStore, you first need to create an instance of
the DataStore object in a script and assign the DataWindow object
to the DataStore. Then, if the DataStore is intended to retrieve
data, you need to set the transaction object for the DataStore.
Once these setup steps have been performed, you can retrieve data
into the DataStore, share data with another DataStore or DataWindow control,
or perform other processing.

Examples

PowerBuilder The following script uses a DataStore to retrieve data from
the database. First it instantiates the DataStore object and assigns
a DataWindow object to the DataStore. Then it sets the transaction
object and retrieves data into the DataStore:

PowerJ You can write the code that instantiates a DataStore or you
can add a nonvisual DataStore to a form in the form design window.
The DataStore class is available on the Database page of the Component
palette. If you add the DataStore in the form design window, PowerJ
generates the code for instantiating the object.

Setting the transaction object is necessary only if the DataStore
is intended to retrieve data and you chose a connection method that
requires you to code it.

This code instantiates a DataStore object. Depending on your
design choices, you may need to call only the retrieve method:


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