Skip to Content
author's profile photo Former Member
Former Member

How to add rows in tableview using javascipt

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 11, 2010 at 07:29 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.