Micro Focus QTP (UFT) Forums
Grid identified as WinList - 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: Grid identified as WinList (/Thread-Grid-identified-as-WinList)



Grid identified as WinList - anushachanda - 09-07-2012

Hi ,
I have been given a windows application to automate which is written in Visual Basic 6.0. Grid in a window is being identified as WinList and the Editboxes in the grid are not being identified by QTP. When clicked on EditBoxes in grid then the EditBox is being Identified once i run the test , it is not being identified uniquely.
Challenge here is i need to read and write into the editboxes in the grid which is appearing as WinList .
Tried Record and PlayBack and also Object Identification i.e tried to map this winlist but Map to: Drop down in Object Mapping does not contain WinTable added in the list.
Can anyone suggest any other way out for this where i could detect the grid and its edit boxes.
Thanks in advance.


RE: Grid identified as WinList - freeboynil - 09-09-2012

Hi,
Is the application is Facets...
i have some code for that


RE: Grid identified as WinList - anushachanda - 09-10-2012

Application is no distinct but coded 20yrs back but updated though....
What code do you have ?
I needed an approach which could solve my problem. Sad


RE: Grid identified as WinList - freeboynil - 09-10-2012

first assign the winobject to a variable then click on 1,1 location( to identify the winedit box) use discriptive program to identify the object.
below is some code.


Code:
'set the winobject to a variable.
set ogrid=windiow("facets").winboject("object")
ogrid.click(1,1)
ogrid.winedit("focused:=true").set datatable("a",dtglobalsheet)
ogrid.winedit("focused:=true").type mictab



RE: Grid identified as WinList - anushachanda - 09-12-2012

Thanks for the reply. Going to try this.