-1
A
回答
0
是如下,我们可以访问表列,然后设置属性。
var tab= this.getView().byId("idProductsTable");
col=tab.getColumns()[5];
tab.getColumns()[5].setProperty("visible",false);
0
var oTable = new sap.ui.table.Table();
var oProduct=new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Product"}),
template: new sap.ui.commons.TextView({
text:"TExt"
})
});
var oPrice=new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Price"}),
template: new sap.ui.commons.TextView({
text:"price"
})
});
oTable.addColumn(oProduct);
oTable.addColumn(oPrice);
//Button
var oButton = new sap.ui.commons.Button({text:"Button",
press:function(){
oPrice.setVisible(false);
}
});
这必将有助于
相关问题
- 1. SAP HANA XS和SAP UI 5成员和角色提供者
- 2. SAP端口列表
- 3. 在缩放更改时触发事件SAP UI 5
- 4. 如何在SAP UI选择所有的输入型5
- 5. 在SAP UI中使用名称加载模型5
- 6. 使用“/resources/sap-ui-core.js”?
- 7. 资源/ sap-ui-cachebuster/sap-ui-core.js适用于混合应用程序?
- 8. SAP FIORI媒体列表,从SMP
- 9. SAP UI OData创建不工作
- 10. SAP UI5的自动UI测试
- 11. 如何从SAP UI中的表中获取数据?
- 12. 排列5(或6)列表
- 13. 使用SAP java连接器调用的SAP功能模块列表是什么?
- 14. 在SAP UI5中的量表/
- 15. sap-ui-core.js加载资源失败:服务器响应状态为404(未找到)send @ sap-ui-core.js:12
- 16. jQuery UI将列表显示为列表
- 17. SAP BODS动态添加列
- 18. SAP HANA列名排序
- 19. SAP内核版本的SAP
- 20. 列表定位在itextsharp 5
- 21. builtins.ValueError:'5'不在列表中
- 22. UI滚动像iPhone HTML 5
- 23. iPhone 5 UI屏幕问题
- 24. Rails 5保护Sidekiq UI
- 25. SAP表的授权组
- 26. SAP仪表板安装
- 27. SAP abap循环插入表
- 28. SAP UI5中的样式表
- 29. SAP HANA中的行表
- 30. 查找SAP关系表
单击按钮将列可见性设置为false。 – Saddamhussain 2014-09-11 12:50:52
显示你已经尝试过的代码。 – qmacro 2014-09-11 15:15:42