cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Object ListItem highlight

Former Member
0 Kudos

Hi Team,

I have a Object List entry which is sorted by date in Page1 .On click of an item navigates to Page2 . On update of model when i return back to Page1 the added css highlight which was done using sId shows wrong entry highlight has the sId position of item is changed

Is there a means to identify dynamically generated sId and make css to point to it

former_member206705
Participant
0 Kudos

Hi Hema,

Since the IDs are dynamic, you can't do this by accessing the control via ID in css. Instead, if you can create a custom css class, and add the class to the list item every time it is selected (and of course, remove it from the previous item), it will work in css.

Thanks and best regards,

Shilpa

Accepted Solutions (1)

Accepted Solutions (1)

former_member365727
Active Contributor
0 Kudos

sId's are generated at runtime based on model information. If the model is refreshed then new sId's might be generated, for this reason we should never use hardcoded sId information to access UI control

Answers (0)