How to know the datasource of other datasources in a form : Purchase Order

Hi All,

I am trying to work with FormNotify method where the function looks for the form IsworkFlowEnabled … It also looks for datasource of the form to form WorkFlow datasource and execute workFlowControls method. Call… The problem i am facing is no matter whether datasource calls super method, like PurchTable, PurchLine. it is always returning PurchTable. as datasource formRun.objectSet().name(). This is resulting in lot of overahead if the purchLine has 100’s of items. Is there a method where i can use to see if the formRun returns the correct Datasource instead of always PurchTable though called from PurchLine.Active() method.

Thanks,