cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Table Row number on browser

Former Member
0 Kudos

Hi,

In my application on the view one table is there and we are getting error from Webdynpro code after

submitting the form. Sometimes there are multiple rows displayed in the table.

Now the requirement is to find out from which row number the error came exactly.

I need to display the exact row number. Please suggest how to do it. If anybody can suggest some code

for this then it would be great. I had logged an earlier query related to this.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srini,

Create a calculated attribute on your node of type int, set the attribute to read only. In this process the ide create a getter methods on your class. O the code put:

return element.index();

This return the position of the row on your table. For more info about calculated attributes:

http://help.sap.com/saphelp_sm32/helpdata/de/7f/a0384162316532e10000000a1550b0/content.htm

Regards,

David Faustini

Answers (0)