Skip to Content
0
5 days ago

[SAPUI5] Add the edit button to sap.ui.table.TreeTable

55 Views Last edit 5 days ago 2 rev

Hello all. I would like to add the edit button to the TreeTable and edit each item from text to input.

https://sapui5.hana.ondemand.com/#/entity/sap.m.Table/sample/sap.m.sample.TableEditable

I want this look, but url supports sap.m.table.

What I tried was 1) writing both text and input in xml and setting input visible="false", bindRows to table in js , and press edit button to change to "true", but there is an aggregation error.

Here's a part of my code.

Thanks in advance.

var oTable = this.getView().byId("TreeTable");

this.byId("TreeTable").setModel(this.jModel);

oTable.bindRows({ path: "/catalog/tag" });

<t:columns>

<t:Column width="100%">
<Label text="Categories"/>

<t:template>

<Text text="{name}" wrapping="false"/>

</t:template>

</t:Column>

</t:columns>