September 2020 Update
Visual Expert 2020 introduces diagrams to visualize PBL dependencies in your application. This allows PowerBuilder developers to identify objects in a PBL that reference an object stored in another PBL.
Below is a screenshot of a PBL Dependency Diagram:
This diagram indicates that components of 'pfeapsrv.pbl' have one or more dependencies on the components from five other PBLs.
Developers may need to see code dependencies at PBL level.
- When isolating a given module of the application, to make it independent from the others
- When tracking the dependencies between client and back-end PB code (deployed on EA Server, running with the PB Application Server Plug-in )
Whenever an object of PBL (A) is calling an Object of PBL (B), a dependency is created between these 2 PBLs. This feature will show all levels of dependencies between PBLs, like a call tree:
Once you have identified that PBL (A) is somehow calling PBL (B), you may need to dig deeper to see exactly which object is calling what in the called PBL.
In the example below, the application object “demopfc”, defined in the PBL “demopfc.pbl” is calling 1 userobject and 4 events outside of this PBL.
Configure the Hierarchy Level
- Select a PBL.
- In the treeview, mouse over the ‘PBL Dependencies’ macro.
- Click on the wrench that appears on its right end.
A configuration window appears on the screen.
- Define the number of hierarchy levels up to which you want to find the PBL dependencies.
On configuring the Hierarchy Level as 3, the resultant PBL Dependencies will be displayed as shown below.
Depending on what you’re looking for, you can take it from there and:
- Show the PBL containing the object(s) called by the application object “demopfc”
- Show the source code of the application object “demopfc”, and higlight the reference to the object called in another PBL