Rearrange the columns and labels – PB Docs 2017
Rearrange the columns and labels Now you rearrange the columns and labels in the new DataWindow object. You can maximize the Design view for greater ease in manipulating the columns and their labels. Click the Address: label in the Design view. Hold the Ctrl key and click the address column. The two items are selected….
Modify the frame window Open event – PB Docs 2017
Modify the frame window Open event Now you modify the frame window Open event script to open the login window. Wizard-generated script The frame window Open event already has a script associated with it that was generated by the Template Application wizard. The script creates an instance of a wizard-generated user object that serves as…
Run in debug mode – PB Docs 2017
Run in debug mode Where you are    Add breakpoints in application scripts >   Run in debug mode    Set a watch and a conditional breakpoint Now you run the application in debug mode. You step through the code line by line. About the Step buttons You can use either Step In or Step Over to step through an…
Display view title bars – PB Docs 2017
Display view title bars Now you display a view title bar by pinning it to the painter workspace background. If a title bar is unpinned, you see it only when your cursor pauses near the top edge of a view. Move the cursor to the top of the extra Script view you just added. The…
Create a new sheet menu – PB Docs 2017
Create a new sheet menu Contents Inherit and save a new menu Add items to the new menu Add a new toolbar for the new menu items Where you are    Modify the frame menu >   Create a new sheet menu    Add menu scripts to trigger user events    Attach the new menu and run the application Now…
Attach DataWindow objects to the Product window – PB Docs 2017
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…
Select the table and columns – PB Docs 2017
Select the table and columns Now you select the table and the columns to use in the DataWindow object. Select customer in the list of tables and click Open. The Select painter displays the customer table and its columns. Alternative method If you double-click the customer table instead of selecting it and clicking Open, the…
Create user-defined exception objects – PB Docs 2017
Create user-defined exception objects Where you are    Add a new sheet window to the existing application >   Create user-defined exception objects    Create a new user function and user event    Call the methods and catch the exceptions    Run the application Now you create two user-defined exception objects that you will throw from a function that is invoked…
Attach the DataWindow object to the detail DataWindow control – PB Docs 2017
Attach the DataWindow object to the detail DataWindow control 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 attach a DataWindow object to the detail DataWindow control….
Call the methods and catch the exceptions – PB Docs 2017
Call the methods and catch the exceptions Where you are    Add a new sheet window to the existing application    Create user-defined exception objects    Create a new user function and user event >   Call the methods and catch the exceptions    Run the application You now write code to populate the drop-down list box controls with state codes…