Hey Guys,
I have a child window and i need to pick some values from the ultragrid in it....how do i do it?
Regards,
Ravi Salunkhe
I forgot to mention, that if you want to close the current window you could use Close method. For example:
SwfWindow("WinEditors Within WinGrid").Close
Let me know if you have any questions.
Regards
Hello Ravi,
One possible appoach to get the cell value from UltraGrid using QTP script could be if you are using GetNAProperty method. For example:
Dim CellValueCellValue = SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").GetNAProperty("Rows[0].Cells[0].Text")msgbox(CellValue)CellValue = SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").GetNAProperty("Rows[3].Cells[4].Text")msgbox(CellValue)CellValue = SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").GetNAProperty("Rows[5].Cells[3].Text")msgbox(CellValue)
Please take a look at the attached video with short demo.
Let me know if you have any questions
Also, is there a way to close the current active window?...i meant everytime i call this function it should close the active window!