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

Provide access to the sheet window from the main application frame – PB Docs 2022 – PowerBuilder Library

Provide access to the sheet window from the main application frame – PB Docs 2022

Provide access to the sheet
window from the main application frame

You must register the new sheet with the sheet manager.

  1. Double-click w_pbtutor_frame in the System Tree.

  2. If the ue_postopen event is not visible in the Script view,
    click the Event List tab and double-click ue_postopen.

    The ue_postopen event script displays in the Script
    view.

  3. Edit the list of sheets to add your new window. The following
    entry should be a single line:

  4. Edit the display list to add a label for your new window. The
    following entry should be a single line:

    shtrgstr.gif
  5. Select File>Save and close the w_pbtutor_frame
    window.

    The next time you run the pbtutor application, you should be
    able to open the new sheet window from the File menu of the main
    frame window. Although you can now run the new sheet window from the
    development environment, you must make sure that you can run it from
    a compiled application as well.

    For this purpose, you reference the sheet windows as window
    objects in the sheet manager of_registersheet script. The reference
    is necessary for the compiler to know that this object is used in
    the application so that it will include it in the executable.

    You create a compiled application in Preparing the Application
    for Deployment

  6. Double-click n_pbtutor_sheetmanager in the System Tree.

  7. Click the Function List tab and double-click
    of_registersheet.

    The script for the of_registersheet function displays in the
    Script view.

  8. Enter the following after the lines declaring sheet window
    variables for the w_customers and w_products windows:

    rgstsht.gif
  9. Save and close the n_pbtutor_sheetmanager user object.


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