Connecting and retrieving data
To connect and retrieve data, you must write a script. The
script can belong to a Retrieve button, or you can have the retrieval
occur automatically by putting the code in the window’s
onLoad script.
For example, to connect and retrieve data for a Web ActiveX
named dw_1, using a DataWindow Transaction
Object control named trans_1, your
script would be similar to this:
|
1 |
trans_1.Connect( ); |
|
1 |
dw_1.SetTransObject( trans_1 ); |
|
1 |
dw_1.Retrieve( ); |
When you use the internal transaction properties, the Web
ActiveX makes the connection automatically. The script can be simpler,
like this:
|
1 |
dw_1.Retrieve( ); |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest