Skip to Content

​SAP UI5 data binding sap.m.table

Sep 01, 2017 at 12:38 PM


avatar image

Hello Everyone,

Request your help on below problem statement:

I am using sap.m.table for UI. The desired format is as attached.

The links in details columns are coming in a string format separated using delimiter.

I am binding data dynamically on my page using bindAggregation and a template. I need help on how can I bind data for Details column.

Points to be taken care of:

  • Count of text and links pair should come dynamically.
  • Thus multiple link items have to be created corresponding to a single row.
  • On click of a row I need values from row to fetch exact URL.

Note: The format or patterns of Details column can be altered in back end but they will come in single field(single row).



ui5-scn.png (6.0 kB)
ui5-scn.png (6.5 kB)
10 |10000 characters needed characters left characters exceeded


what code have you tried?

here is the link to the documentation of the sap.m.Table control

then within the table, on your template you may need a text formatter function as shown here

* Please Login or Register to Answer, Follow or Comment.

3 Answers

Yogesh Beria
Sep 03, 2017 at 01:09 PM

You can instead use a factory function while binding where you can get the string data from the model and split it using the delimiter to get an array.

Then you can create the content dynamically in the function and return a layout control which has these items as an aggregation.

You can look at the links below for the factory function

10 |10000 characters needed characters left characters exceeded
Akhilesh Upadhyay Sep 02, 2017 at 06:56 PM


you can use formatter function to format and put the count, check below example,

Example in fiddle

and i think you can get row value on row selection event further.

10 |10000 characters needed characters left characters exceeded
Sharath M G Sep 02, 2017 at 06:07 PM

When you bind the aggregation dynamically, use a local model to bind the data to your rows.

Populate the model, with the data you need to see on the table. Since it is data bound to control, you can have a separate method where the model is populated and it will be respectively updated on the view.



10 |10000 characters needed characters left characters exceeded