Micro Focus QTP (UFT) Forums
get row header in a grid - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: get row header in a grid (/Thread-get-row-header-in-a-grid)



get row header in a grid - pepehongo - 08-24-2010

Hello,

I'm facing the following issue with QTP:

I need to validate if each row in a grid has the right header, but as far as I know QTP just allows you to refer a row by its number (position), not its name.

So, I need a way to obtain the name of each row in my grid.

Thanks for your help.


RE: get row header in a grid - venkatbatchu - 08-25-2010

Hi,

As per my understanding with ur issue,

You can validate the data by fetching the cell value using "GetCellData"
Syntax:GetCellData(row,Coloumn)


You can fetch the row value for the matching text w.r.t to the coloumn by using
GetRowWithCellText(Start From Row,Text to Find,Column)

Please let me know for further clarification.


Regards,
Venkat.Batchu


RE: get row header in a grid - ankit garg - 08-25-2010

Hi,
Can any please let me know how to check labels in qtp.
I have a application in two languages-english and danish.I want to check whether labels are correct for the corresponding english labels?


RE: get row header in a grid - venkatbatchu - 08-25-2010

Hi Ankit,

Please open a new thread as the query which you posted is different.

We would suggest you with the better solutions.

Please do this.

Regards,
Venkat.Bathu


RE: get row header in a grid - pepehongo - 08-25-2010

Hello Venkatbatchu,

The issue is that I need to get the row header or name. Since the row header is not a cell, I can't refer to it as a cell in my table.

Any idea?

Thanks


RE: get row header in a grid - venkatbatchu - 08-25-2010

Hi Could you please attach the screen shot so that we can get some idea about that.


Regards,
Venkat.Batchu