pbdatawindow data using QTP
Question ID: 104508
2
0

Does anybody know how to get all of the data from a Power builder pbdatawindow?

Marked as spam
Posted by (Questions: 45, Answers: 1)
Asked on April 24, 2012 11:24 am
232 views
Answers (3)
3
Private answer

I have used the Describe method. This method is a way to get into the Powerbuilder run time attributes and methods. Here is the code I used to get all the data from a pbdatawindow.


Set dataWindowTO = ... pbdatawindow(''myDataWindow'')
Data = dataWindowTO.Describe(''datawindow.data'')
Reporter.ReportEvent micPass, ''DataWindow data'', Data

Recommend reading the ''HP QuickTest Object Model Reference'' for more information on this method
For reference data check out:

[Sybase DataWindow® Programmer's Guide][1]

[Sybase DataWindow Reference][2]

[1]: http://download.sybase.com/pdfdocs/pbg0900e/dwprgug.pdf
[2]: http://download.sybase.com/pdfdocs/pjg0400e/dwref.pdf

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on April 24, 2012 11:32 am
1
Private answer

It has been found much easier to use the following line of code to get the text-based data from a datatable by using the following line of code where objTable is the table in question:

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

I had help from Orasi Support to getting this answer. Good Luck!

Marked as spam
Posted by (Questions: 5, Answers: 6)
Answered on April 24, 2012 11:28 am
0
Private answer

But this is not returning the complete data in the datatable. Anyone else faced the same issue and knows the resolution?

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on January 28, 2016 5:57 am
EyeOnTesting

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

X
Scroll to Top