cancel
Showing results for 
Search instead for 
Did you mean: 

Compare two rows of table

former_member188556
Active Contributor
0 Kudos

Hi,

Is there any way you can compare two rows of the table?

Without element.getAttribute for each cell on each row...

Regards

BP

Accepted Solutions (0)

Answers (3)

Answers (3)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi BP

It's slightly depends on the purpose why you need to do so. Sometimes it seems necessary to compare the row modified by user with the original row. If this is your case then you can use the following Webdynpro API in order to check if the element was modified by client or not:

boolean IWDNodeElement.isChanged();
boolean IWDNodeElement.isChangedByClient();

If this is a model node then you can switch from elements comparing to the model instances comparing. Some model instances implement fully standard equals(...) operation. But it depends, of course, on a model type.

In general I do not see any other solution better then attribute-by-attribute comparing.

BR, Sergei

Former Member
0 Kudos

You can use TableSorter functionality (you will need to enhance it)

Former Member
0 Kudos

Hi,

I dont think this is possible. This is something related to Java Object.

Srini