Hi,
I am binding progress indicator in a template as a ColumnListItem and doing BindAggregation on table.
var oTemplate = new sap.m.ColumnListItem({
type : "Navigation",
press : [this.navigate,this],
cells : [
new sap.m.Text({
text : "{MATNR}" }),
new sap.m.Text({
text : "{CUSTOMER}"}),
new sap.m.Text({
text : "{LOCNO}"}),
new sap.m.ProgressIndicator({
width : "90%",
height: '1.3rem',
percentValue : parseFloat("{CONF_PERCENTAGE}"),
displayValue :"{CONF_PERCENTAGE}"+"%",
showValue : true,
state: sap.ui.core.ValueState.None
}),
]
});
oTable.setModel(oModeltest);
oTable.bindAggregation("items", "/results", oTemplate);
But I am not getting percentValue in UI. So it will be a progress indicator with only displayValue but no colour.
It displays an empty bar with displayValue that is like 20%,
Since the precentValue takes float, i did parseFloat as well.
When i checked in debug mode, I was getting
<div class="sapMIBar sapMPIBarNeutral id="__indicator0-bar" style="width:0%">
this width should be actuall %, it is always 0.
Can anyone help me to get the widht and hence colour for progress Indicator.
Regards,
Akhila (i064091)