How can you view disabled cells in a Powerbuilder Data Window?
Question ID: 104500
1
0

I am currently working on a project that is uses the Powerbuilder to generate financial reports. These reports typically have subtotals throughout the report in addition to the grand total at the bottom of these reports. For the report that I am validating, the subtotals and grand totals cannot be selected, but they are visually part of the table. When programatically trying to access this part of the table, QTP crashes. Occasionally, QTP will skip over a few rows, however, it is not consistent enough to skip all disabled rows regularly. How can I get the properties of a particular cell without it crashing QTP? I am happy to add any additional details to the question if necessary.

Thanks.

Marked as spam
Posted by (Questions: 5, Answers: 6)
Asked on April 11, 2012 2:27 pm
30 views
Answers (1)
0
Private answer

Just use the following line of code where objTable is the dataTable in question to get all of the data and then parse it from there:

Data = objTable.Describe(''datawindow.data'')

Distinguishing from the hidden and visible cells may not be worth the effort.

Marked as spam
Posted by (Questions: 5, Answers: 6)
Answered on April 24, 2012 11:31 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top