Forum Discussion
*****.SwingObject("genericTableControl") this can be used to retrieve the table values.
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
- 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() - 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
- 8 hours agosimonaferrara
- 17 hours agoSubhraDas
- 2 days agotramuntana