arorasaksham
9 years agoNew Contributor
How to handle dynamic powerbuilder DataWindow?
Hi,
I am working on a powerbuilder application having dynamic pbdw control. The rows are loaded based on some filter criteria. I am not able to identify objects in the application. However if i try to spy application which has pre loaded data, i can identify them correctly.
for e.g. in the below code. The objExpectationIds doesnt return anything . But if application is preloaded with data before execution it works. Please help
PropNames=Array("Caption","ObjectType")
PropValue=Array("expectation_id","Edit")
objExpectationIds=expectationPanel.FindAllChildren(PropNames,PropValue,5)
Log.Message("")
For i=0 to UBound(objExpectationIds)
if(objExpectationIds(i).Value="82286") then
objExpectationIds(i).Click
Exit For
end if
Next