Skip to Content

Enter Blank Editable fields in a table SAP UI5

Hi,

I have created a table and added an option to add a blank row on click of "Create Entry" Button. I am able to add a blank row, but it is not editable. Kindly help me with this.

create-entry.png (22.2 kB)
addrow.png (11.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 07 at 07:50 AM

    Remove <items> </items> from XML.

    Create & bind template at run time.

    this.oTemplate = new sap.m.ColumnListItem({ cells: [ new sap.m.Text({ text: "{ITMU}" }),new sap.m.Text({ text: "{PRMU}" }), ..............] });

    this._oTable.bindItems({ path: "/CNST_ER", template: this.oTemplate });

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 07 at 06:28 AM

    Hello Meenakshi,

    You need bind template to table.

    For example.

    this._oTable.bindItems({ path: "/CNST_ER", template: this.oTemplate });

    this.oTemplate will be a sap.m.ColumnListItem

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 07 at 07:09 AM

    @Bopanna D C I saw this one. But it is only adding blank rows, which are not editable.

    Add comment
    10|10000 characters needed characters exceeded