Micro Focus QTP (UFT) Forums
DP is not returning the whole table data content - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: DP is not returning the whole table data content (/Thread-DP-is-not-returning-the-whole-table-data-content)



DP is not returning the whole table data content - soumen - 12-13-2012

I am using descriptive programming to fetch the table data in our application. The table is developed using slickgrid jquery. If there are 60 rows of data displayed in the table, in my machine I am getting only 20 rows of data when the code is executed. However, when the same code is executed on another machine (monitor having larger screen area), all data are retrieved. Does DP depend on the monitor size?


RE: DP is not returning the whole table data content - soumen - 12-24-2012

Can anyone help me out with the above issue?


RE: DP is not returning the whole table data content - krr - 12-31-2012

Yes, obviously. If certain objects are not visible completely DP will not retrun complete data. For this you should use workarounds. Like scorlling,expanding, regular expression. After this you can fetch complete data. Hope this will address your issue.


RE: DP is not returning the whole table data content - soumen - 01-10-2013

I have tried by implementing scrolling. But the row data being fetched are getting duplicated as the screen is scrolled down. It is picking up a block of the same rows of data which was already fetched before. I am not getting the desired output.

Another question is how to implement "expanding, regular expression" to resolve this issue?


RE: DP is not returning the whole table data content - Parke - 01-17-2013

Doing something simple minded like create a web page from Excel. I used three columns and put data into 35 rows and saved as html to my desktop (more rows than would be seen on screen).
Wrote the following code and all the rows were printed.

Code:
numRows = Browser("title:=Book1.htm").page("url:=file:///C:/Users/me/Desktop/Book1.htm").frame("name:=frSheet").Webtable("html tag:=TABLE").GetROProperty("rows")

print "numrows = " & numRows

Set obj = Browser("title:=Book1.htm").page("url:=file:///C:/Users/me/Desktop/Book1.htm").frame("name:=frSheet").Webtable("html tag:=TABLE")

For irow = 2 to numRows
    row = ""
    For icol = 1 to 3
        row = row & ": " & obj.GetCellData(irow,icol)
    Next
    print "row = " & row
Next

I do not understand your problem as DP works fine for me in this situation and in others.


RE: DP is not returning the whole table data content - soumen - 01-17-2013

The problem is that there is no WebTable object. The table that is displayed on the screen is developed using slickgrid query. Though the look and feel of the table is that of a WebTable. Each of the table contents are identified as a WebElement.
Using DP the number of columns are retrieved correctly. But while retrieving the number of rows, the actual value is not retrieved. Only the rows that are currently visible on the monitor screen is picked up using DP.


RE: DP is not returning the whole table data content - vvcyril - 10-02-2013

I am only able to identify the slick grid as an object. How to identify the rows and columns and the fields in it.