cancel
Showing results for 
Search instead for 
Did you mean: 

How to add rows in tableview using javascipt

Former Member
0 Kudos

Hi

I had tableview and button in my page.If i click on the button one new row should be appended to the existing tableview.

so , how to add rows in tableview using javascipt which are editable?

Regards,

Pydi.

Accepted Solutions (0)

Answers (1)

Answers (1)

krishnendu_laha
Active Contributor
0 Kudos

Hello,

You can not add rows in TableView throuhg Javascript! Javascript is for client side scripting...

You can catch the event and add empty row in internal table which is used to display on screen

Thanks

Former Member
0 Kudos

Hi,

Javascript is client scripting language, which is mainly used for validations at the client side.

To add new row using a HTMLB tag ucannot use javascript. Instead pass "visibleRowCount" variable to a abap variable and add the variable on every button click.. that wil increase the visible row count.

Also the size of the table view is the size of the itnernal table, so append a blank like to the internal table or insert it at the top.

If you are not using HTMLB tags and using simple HTML tags u can always add a row using java script.

Regards

Imran.