Forum Discussion
You can try like this way.
aqConvert.VartoStr(objTable.getValueAt(0,1))
Or
aqConvert.VartoStr(objTable.wItem(0,1))
It always returns the exact value from the Swing Table. In our project we used this method to get different kind of data type values from a Swing Table cell.
- DKNP8 years agoOccasional Contributor
Hi
Thanks for solution of converting the type to string, however, when I tried it against the cell I was having the problem with, it returned blank.
I have tested this further by testing the wValue(x,y) property (which in effect is a wrapper for GetValueAt method) against the following field data types:
String - returns correctly
Int\Long - returns correctly
Decimal\Currency - blank
Date - blank
It would appear that the GetValueAt() only works with primitive data types.
Do Smartbear have a solution for this problem?
- Colin_McCrae8 years agoCommunity Hero
Did you look into querying the renderer?
It is, in effect, a different object to the table. But it is used in conjunction with it.
I think you just need a different property to the one mentioned my HKosova in this post here. The renderer determines the formatting in these things so I suspect that's the part you're going to have to look at if you want to get beyond the raw data.
Related Content
- 13 years ago
Recent Discussions
- 4 days ago
- 5 days ago