表行自动刷新

时间:2015-01-05 09:43:56

标签: sapui5

我在SAPUI5中创建了一个表,并使用oTable.addItem(oRows)向该表添加了行。它工作得很好。但是当我滚动或点击屏幕中的某个地方时,突然会自动在表格行中显示刷新图标(处理圆圈)。

代码:

function addData(results, oTable, add) { //Here results table has my data which is added to table
  for ( var i = 0; i < results.length; i++) {
    var oEntry = {};
    oEntry.SAP__Origin = results[i].SAP__Origin;
    oEntry.Sbname = results[i].Sbname;
    oEntry.Fname = results[i].Fname;
    oEntry.Lname = results[i].Lname;
    oEntry.Stdate = results[i].Stdate;
    oEntry.Sttime = results[i].Sttime;
    oEntry.Endate = results[i].Endate;
    oEntry.Entime = results[i].Entime;
    oEntry.Status = results[i].Status;
    oEntry.Tzone = results[i].Tzone;

    var oTemplate = new sap.m.ColumnListItem(
        {
          cells : [
              new sap.m.Text({
                text : oEntry.SAP__Origin
              }),
              new sap.m.Text({
                text : oEntry.Sbname
              }),
              new sap.m.Text({
                text : oEntry.Fname
              }),
              new sap.m.Text({
                text : oEntry.Lname
              }),
              new sap.m.Text({
                text : z_cof_subs.util.Formatter
                    .date1(oEntry.Stdate)
              }),
              new sap.m.Text({
                text : z_cof_subs.util.Formatter.time(
                    oEntry.Sttime, oEntry.Tzone)
              }),
              new sap.m.Text({
                text : z_cof_subs.util.Formatter
                    .date1(oEntry.Endate)
              }),
              new sap.m.Text({
                text : z_cof_subs.util.Formatter.time(
                    oEntry.Entime, oEntry.Tzone)
              }),
              new sap.m.Switch(
                  {
                    state : z_cof_subs.util.Formatter
                        .check(oEntry.Status),


                  }) ]
        }

    );

    if (add == 'X') {
      oTable.addItem(oTemplate);
    } 
  }
};

我不知道为什么会出现刷新图标。有没有遇到过这个问题?

0 个答案:

没有答案
相关问题