Path for an object that is both PbTable and PbForm

Tips and Techniques

Moderators: ZeenyxSupport, blesuer

Post Reply
GordonWeil
Posts: 2
Joined: Wed Jun 25, 2014 1:41 pm

Path for an object that is both PbTable and PbForm

Post by GordonWeil »

I have a PowerBuilder datawindow that AscentialTest identifies as a PbTable when data is present, and a PbForm when the datawindow is empty.

The App Object Editor field for Object Class allows only one class to associate with the path. Since I needed to identify the datawindow using two classes it was not clear how to define a path that would identify the object both when it was empty and when it was not.

Brian found the following solution: Pick one of the classes for the App Object Editor field labeled Object Class, and specify the other object class in the path. The resulting path statement takes up 2 lines in the Path section of the App Object Editor tab. My path statement looks like the following, with Object Class set to PbTable:

[below PbLabel[@Text like "*utrients:"]]
PbForm [below PbLabel[@Text like "*utrients:"]]
Post Reply