@victordcq @cmallonee @pascal.fragnoud ...I am getting output in the console as object wrapper as below while clicking on Row and only for highlighted row ...for an unhighlighted row, I am getting proper output means the only value of ID as 101...I want the same output for highlighted one also, how to achieve that?
<ObjectWrapper>: {u'style': {u'backgroundColor': u'#AAAAAA'}, u'value': u'101'}
using value, at last, I got proper output for a highlighted row but for an unhighlighted row, it's throwing below error
value=self.props.data[self.props.selection.selectedRow]['Id'].value
error........
unicode' object has no attribute 'value'
by clicking on a row, I need proper value for both highlighted and unhighlighted rows..plz help
Solved it ...Thanks!!
to highlight the row, I followed as given in this below link...
Here, in below code I edited from ..
if str(row['Id'])== IdTxt:
row_dict['Id] = {'value': row['Id'], 'style': {'backgroundColor': backgroundColor}}
returned_rows.insert(0,row_dict)
self.props.selection.selectedRow=-1
else:
row_dict['Id'] = row['Id']
returned_rows.append(row_dict)
To ..Final code
if str(row['Id'])==IdTxt:
row_dict['Id'] = {'value': row['Id'], 'style': {'backgroundColor': backgroundColor}}
returned_rows.insert(0,row_dict)
self.props.selection.selectedRow=-1
else:
row_dict['Id'] = {'value': row['Id']}
returned_rows.append(row_dict)
Just added value in else condition that worked out for me and now getting proper ID value on both highlighted and unhighlighted rows..Hope this helps.
Thank you!