on 2017 Sep 01 1:38 PM
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:
Note: The format or patterns of Details column can be altered in back end but they will come in single field(single row).
Regards,
Minakshi
Request clarification before answering.
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
https://sapui5.netweaver.ondemand.com/sdk/#/topic/335848ac1174435c901baaa55f6d7819
https://sapui5.netweaver.ondemand.com/sdk/#/topic/284a036c8ff943238fb65bf5a2676fb7
https://sapui5.netweaver.ondemand.com/sdk/#/api/sap.ui.base.ManagedObject/methods/bindAggregation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Add controls to the cell after u get data for the table.
Use HBox, VBox layouts to alight multiple value in same column.
Regards,
Gururaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use formatter function to format and put the count, check below example,
and i think you can get row value on row selection event further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.