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

Editable table

I have this table

I bind odata service and get the firts row data. The folowing rows don't have more data. I want the rows 2,3,4 are editable as in the next image.

The table and the colums are editables in the code:

oTable= new sap.ui.table.Table("tableFechaRoja",{

visibleRowCount: 4,

width: '650px',

editable: true,

resizable: true,

flexible: true,

selectionMode: sap.ui.table.SelectionMode.Single,

selectionBehavior: sap.ui.table.SelectionBehavior.Row


oTableFechaRoja.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:, editable: true,resizable: true, flexible: true}),

template: oControlFechaRoja,



editable: true,

resizable: true,

flexible: true,





else if( == "DATE"){

oTableFechaRoja.addColumn(new sap.ui.table.Column({


template: new sap.ui.commons.DatePicker("dateColumn",{


value: {

path: "DATE",

type: new sap.ui.model.type.Date({pattern: "dd/MM/yyyy"})

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 04, 2014 at 07:56 PM

    you need to make the template control editable. when you make the template control editable then your entire column get the same settings.

    in the other hand, if you need rows and not columns, then you need to use a JSON object and set the editable property on each record in your array.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2014 at 05:32 PM


    In this example, I made editable column for 4th row, rest are readonly.

    I'm not sure it will be helpful or not, to fit for your requirement give a try to change the logic.

    JS Bin - Collaborative JavaScript Debugging</title> <link rel="alternate" type="application/jso…

    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.