2020-09-15 20:30发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好 我用odata开发... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
大家好
我将代码放在init()中,然后将其渲染在表updatefinish上。我尝试了所有事情。 第一次上色有效,但是当尝试填充表格时又无法上色?
需要写一些多余的代码吗?
提前感谢
var oTable = this.getView()。byId(" tblAllPo");
var aa = oTable.getBinding(" items");
var aItems = oTable.getItems();
如果(aItems && aItems.length> 0)
{for(var i = 0; i var aCells = aItems [i] .getCells(); //if(aCells [11] .getText()===" NEW"){//调试器; //aItems [i] .addStyleClass(" redBackground"); //} if(aCells [11] .getText()===" COMPLETED"){调试器; aItems [i] .addStyleClass(" greenBackground"); } if(aCells [11] .getText()===" PARTIAL"){调试器; aItems [i] .addStyleClass(" blueBackground"); } if(aCells [11] .getText()===" OVERDUE"){调试器; aItems [i] .addStyleClass(" LightCoralBackground"); }}}
var aCells = aItems [i] .getCells(); //if(aCells [11] .getText()===" NEW"){//调试器; //aItems [i] .addStyleClass(" redBackground"); //} if(aCells [11] .getText()===" COMPLETED"){调试器; aItems [i] .addStyleClass(" greenBackground"); } if(aCells [11] .getText()===" PARTIAL"){调试器; aItems [i] .addStyleClass(" blueBackground"); } if(aCells [11] .getText()===" OVERDUE"){调试器; aItems [i] .addStyleClass(" LightCoralBackground"); }}}
最多设置5个标签!
var oTable = this.getView()。byId(" tblAllPo");
var aa = oTable.getBinding(" items");
var aItems = oTable.getItems();
如果(aItems && aItems.length> 0)
{for(var i = 0; i
var aCells = aItems [i] .getCells(); //if(aCells [11] .getText()===" NEW"){//调试器; //aItems [i] .addStyleClass(" redBackground"); //} if(aCells [11] .getText()===" COMPLETED"){调试器; aItems [i] .addStyleClass(" greenBackground"); } if(aCells [11] .getText()===" PARTIAL"){调试器; aItems [i] .addStyleClass(" blueBackground"); } if(aCells [11] .getText()===" OVERDUE"){调试器; aItems [i] .addStyleClass(" LightCoralBackground"); }}}
一周热门 更多>