Forum Discussion
That looks more like a grid than a list. So... is it a SwingList of rows? Or is each row a list item? What gives here?
See, the component class you're trying to reference it as is usually a list of items, each one a string of text to be referenced. What you have here looks a LOT more like a table or grid. I'm guessing that each row is an item in the list which means that they aren't necessarily object that you can retrieve in this way.
Is this something that is natively recognized as a SwingList by TestComplete or did you do some modifications of your Object Mapping to map this component to the SwingList?
I didn't do any modification for this object. The class name identified by Test complete is "ListBean$1" and the name of the object is SwingObject("ListBean$1", "", 0).
There are a header row and few rows with items. There is no list under each row. I need to get the value of one of the row.
If each row an item, how can I get it without any property or something
- tristaanogre8 years agoEsteemed Contributor
So, in other words, it's not a standard SwingList... It's a list of records within something called a ListBean. That's your problem right there... the items in your list aren't OLE compatible objects, they are data records of some sort. Not entirely certain how to go about getting individual information from individual rows.
There should be a NativeJavaObject property on your object. If you open that up, what's available there? Also, can you post screenshot of all the properties of your component as displayed in the Object Browser? It's possible to probably do what you're asking but you might not be able to do so with wItem or wItemList.
Related Content
Recent Discussions
- 4 hours agoSubhraDas
- 23 hours agotramuntana