cancel
Showing results for 
Search instead for 
Did you mean: 

How to highlight a row with dotted lines from a table

0 Kudos

Hi,

I have a requirement. In the second page of my application, there are two icon tab filters with a table in it( there is a column of Locked/unlocked, in which for few rows in a table is having locked icon and for others having unlocked icon).

The requirement is after navigating to second page from first, it should highlight the first unlocked row with dotted lines.

Kindly help me if anyone has solution to this.

Thanks & Regards,

Ayesha

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Got the answer by myself...

write a function inside a property named updateFinished in sap.m.Table
Inside the function, get items from oEvent.getSource() and write the below code. it works..

for (var i = 0; i < aItems.length; i++) {

var icon = aItems[i].getAggregation("cells")[0].getSrc();

if (icon === "sap-icon://unlocked") {

aItems[i].focus();

break;

}

Answers (0)