Skip to Content

How to get TextField value placed inside SAPUI5 table

Dear Team,

I have a scenario in which I need to take the value entered in textfield placed inside the table cell.

  1. JSON Model response set to table.
  2. I have placed textfield in one row only and others are non editable.
  3. Now I want the value entered in above mentioned textfield placed inside each row cell.

Pls help urgent how can I achieve this.

Below is the screen attached, where I want value from marked textfields.


Bhavin Anajwala


table.PNG (10.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 10, 2014 at 08:01 AM

    Sorry Bhavin

    I do not fully understand your question.

    But this example may help.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2014 at 09:33 AM

    Hi Bhavin,

    You can get the context of the row that you have highlighted.

    var tab= sap.ui.getCore().byId('tab');
    var oParams = tab.getContextByIndex(3);
    var oData = this.getModel().getProperty(oParams.sPath);

    The oData will contain the data associated with the line.

    Please let me know if this helped ?



    Add a comment
    10|10000 characters needed characters exceeded

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.