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
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:
1 |
datastore lds_datastore |
1 |
lds_datastore = CREATE datastore |
1 |
lds_datastore.DataObject = "d_cust_list" |
1 |
lds_datastore.SetTransObject (SQLCA) |
1 |
lds_datastore.Retrieve() |
1 |
/* Perform some processing on the data... */ |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest