Extracting the data from Grid-table(Windows Application) using Python
Actually I need to get total values of a single column present in the Grid Table .So first i used the below code for getting the count of Child Items and Names of it which are in the Grid Table.
def grd (): Grid = Aliases.teacher_debug.frmMain.dxDockSite.TdxDockPanel.frmListDealNav.TdxDockSite.TdxLayoutDockSite.TdxDockPanel.frameList.grdGridFrame.TcxGridSite if Grid.Exists: Log.Message(Grid.Name,Grid.FullName) for i in range (0,Grid.ChildCount): countchi = Grid.Child(i) Log.Message(countchi.Name,"",0)
and the OutPut was Window("TcxGridSite", "", 1)
Am not able to understand what went wrong please guide me
Hi Colin_McCrae HKosova how are you :)
I got a solution for getting all the list values i.e.
- First We need click on the list so that drop down of list is visible.
- Now Spy the DropDown By **bleep**+CTRL+A
- Now Object Spy will show all the Properties.
- Go Inside Grid View from there View Details From there to Record.
- Now In the Record Give Param as 0 and go inside it .
- Check the Display Text Now given the Param as 0
- Now you will able to see the First value in the list
- So by changing every time the Param of Record and by default keeping the Display Text Value as 0 we will get all the values in the List.
So the Aliasis Looks like this Aliases.Teachers_debug.TcxComboBoxPopupWindow.TcxExtLookupGrid.TcxGridSite.GridView.ViewData.Records[i].DisplayTexts[0]
Finaly one thing solved :D but not still the Grid View :P
Hi Colin_McCrae and HKosova
I was able to read the Grid values ,in the same way which i did in my previous post of how i was able to read all the list values , so finally it solved . Am happy that i was able to solve it myself. :manhappy::smileyvery-happy:
Thanks for your support team