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

Attach DataWindow objects to the Product window – PB Docs 2022 – PowerBuilder Library

Attach DataWindow objects to the Product window – PB Docs 2022

Attach
DataWindow objects to the Product window

Where you are

Attach the DataWindow
object to the master DataWindow control

Attach the DataWindow
object to the detail DataWindow control

Run the
application

> Attach
DataWindow objects to the Product window

Run the application
again

Now you add two DataWindow objects to the w_products window. These
DataWindow objects are provided for you in the tutor_pb.pbl
library.

  1. Right-click w_products in the System Tree and select Edit from
    the pop-up menu

    or

    Double-click w_products in the System Tree.

    The Window painter displays the w_products window.

  2. If the Control List view is not open, select View>Control
    List from the View menu.

    Select the dw_master DataWindow control in the Control List
    view.

    Click the ellipsis button next to the DataObject box in the
    Properties view.

    PowerBuilder displays the Select Object dialog box.

  3. Select tutor_pb.pbl in the Application Libraries box.

    Select d_prodlist in the DataWindows box and click OK.

    The Data Object box in the Properties view of the Window painter
    now displays d_prodlist.

    PowerBuilder associates the d_prodlist DataWindow object with
    the dw_master DataWindow control in the w_products window. You see the
    headings for the DataWindow object in the Layout view. You might need
    to resize the control and/or the window.

    pbc14w01.gif
  4. Click the dw_detail DataWindow control in the Control List
    view.

    Click the ellipsis button next to the DataObject box in the
    Properties view.

    The Select Object dialog box displays.

  5. Select tutor_pb.pbl in the Application Libraries box.

    Select d_product in the DataWindows list box and click
    OK.

    PowerBuilder associates the d_product DataWindow object with the
    dw_detail DataWindow control. The Layout view now shows the d_product
    DataWindow object inside the dw_detail control. The d_product
    DataWindow object has seven columns labeled Product ID, Product Name,
    Product Description, Size, Color, Quantity, and Unit Price.

    If necessary, in the Layout view, make the dw_detail control
    larger so that you can see all of the columns in the DataWindow
    object. You can also enlarge the window to make more room.


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