LfwView main=LfwRuntimeEnvironment.getWebContext().getPageMeta().getView("main");
//表体
GridComp gridb=(GridComp) main.getViewComponents().getComponent("phoneBvo_grid");
GridColumn phoneno=(GridColumn) gridb.getColumnById("phoneno");
phoneno.setEditable(true);
//表头
FormComp formCompHead = (FormComp)main.getViewComponents().getComponent("phoneHvo_form");
formCompHead.getElementById("def3").setEnabled(false);//设置表格单元格编辑性
本文介绍如何使用LfwView获取页面元数据,并通过Java代码设置GridComp和FormComp组件的可编辑性和启用状态。具体操作包括设置表格列的可编辑性以及表头单元格的启用状态。
632

被折叠的 条评论
为什么被折叠?



