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

Reusing a DataWindow object – PB Docs 100 – PowerBuilder Library

Reusing a DataWindow object – PB Docs 100

Reusing a DataWindow object

note.gif PowerBuilder only This technique uses PowerScript methods, which are not available
in other DataWindow environments.

You can reuse a DataWindow object by retrieving its syntax
from the library it is stored in, then using the syntax to create
a DataWindow object dynamically in a DataWindow control.

Here is a typical way to accomplish this in an application.
Use:

  • The LibraryDirectory function to obtain
    a list of DataWindow objects and other library entries in the current
    library
  • A DropDownListBox to list the DataWindow objects
    in the library and then allow the user to select a DataWindow from
    the list
  • The LibraryExport function to export the selected
    DataWindow object syntax into a string variable
  • The Create method to use the DataWindow syntax to
    create the DataWindow object in the specified DataWindow control
  • The Describe method to get the current DataWindow
    object syntax—for example:

  • The Modify method to allow the user to modify the
    DataWindow object
  • The LibraryImport function to save the user-modified
    DataWindow object in a library

For information about the PowerScript functions,
see the PowerScript Reference
. For information
about the DataWindow methods Create, Describe, and Modify, see the DataWindow
Reference

.


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