Forum Discussion
That's Okay..
1. The object you trying[GIndexedCollectionControl$ListArea] is Text based control.
2. If you want to get the Rows and Columns then you have to use *****.SwingObject("genericTableControl") this object.
Let us know what are trying to achieve with this control.
Well, as we can see, the object looks like a table.
What I want to do is to be able to retrieve data from cells to recognize which row i am currently working on.
How can i achieve this?
thanks.
- shankar_r8 years agoCommunity Hero
I guess you were confused, I m trying to say you mentioned in the post as a object below and i want you to try with the highlighted Name mapping to get the Table values.
a = Aliases.java.PersonaldispositionRunner.RootPane.null_layeredPane.Panel.ComponentOrientationAwareJSplitPane.Panel.GBasicPanel.IvuWorkflowContainer.DisponierenView.Panel.GrafischeDispoEditor.mainSplitPane.SwitchableResourceListPane.resourceVOsForSelectedPlanningLevel.outerSplitPane.splitPane.genericTableControl.GIndexedCollectionControl_ListArea
ret = a.SwingObject("genericTableControl")
Instead of above try belowa = Aliases.java.PersonaldispositionRunner.RootPane.null_layeredPane.Panel.ComponentOrientationAwareJSplitPane.Panel.GBasicPanel.IvuWorkflowContainer.DisponierenView.Panel.GrafischeDispoEditor.mainSplitPane.SwitchableResourceListPane.resourceVOsForSelectedPlanningLevel.outerSplitPane.splitPane.genericTableControl
a.getRowCount()
(or)
a.getModel().getRowCount() - shankar_r8 years agoCommunity Hero
*****.SwingObject("genericTableControl") this can be used to retrieve the table values.
- bjaii8 years agoOccasional Contributor
I did:
(Sorry for the long name)
a = Aliases.java.PersonaldispositionRunner.RootPane.null_layeredPane.Panel.ComponentOrientationAwareJSplitPane.Panel.GBasicPanel.IvuWorkflowContainer.DisponierenView.Panel.GrafischeDispoEditor.mainSplitPane.SwitchableResourceListPane.resourceVOsForSelectedPlanningLevel.outerSplitPane.splitPane.genericTableControl.GIndexedCollectionControl_ListArea
ret = a.SwingObject("genericTableControl")and i get:
Unable to find the object SwingObject("genericTableControl"). See Additional Information for details. 11:56:01 Normal
- bjaii8 years agoOccasional Contributor
I didn't notice that generictable object, thanks for that!
I think we are getting closer to something.
I cannot getModel on that object, nor getRowCount. I do see new function like ClickCell in Actions. But when I try to execute these, I get the error getRow(Column)Count not found like earlier (see Action.png for list of actions).
Most function I tried under Java seems to work, I found a function called getItemCount, this one counts the number of row in the table.
Is it possible that this is not the native table object of Java? What can I do in this case?
Thanks!
- shankar_r8 years agoCommunity Hero
Here you go. You got the table object Congrats. :)
For more details on how to work with table or grid :https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/jtable/index.html
Sample like:
YourObject.wRowCount
YourObject.wCoulmnCount
YourObject.wValue(row,col)
etc...
- bjaii8 years agoOccasional Contributor
wRowCount yield the error 97 0x80020006 (Unknown name.) getRowCount
So it seems that this "genericTableControl" is not a Jtable? but something somewhat customized?
- shankar_r8 years agoCommunity Hero
Hmmm...Then you have to contact your development team to know what is the type of Object extending for the genericTableControl
Related Content
- 2 years agonormgean
Recent Discussions
- 9 hours agosimonaferrara
- 18 hours agoSubhraDas