EAS-BOS开发问题解决
如何针对一个cell设置一个弹出F7对话框?
解决:
FileChooserPromptBox nf7 = new FileChooserPromptBox(this, FileChooserPromptBox.CHOOSERTYPE_OPEN);
nf7.setDisplayFormat("$name$"); nf7.setEditable(true);
KDTDefaultCellEditor cellEditorPath = new KDTDefaultCellEditor(nf7); this.tblMain.getColumn(TB_FILEPATH).setEditor(cellEditorPath); FileChooserPromptBox是一个特别的F7,没有办法在UI上面进行拖拉,可以直接产生。 以上是在一个单元格里面设置 还有另外一种是:
kDLabelContainer.setBoundEditor(nf7); 放在容器kDLabelContainer里面。
在服务端获得info的写法
解决:
BgAdjustBillInfo adjustBillInfo =(BgAdjustBillInfo)this._getValue(ctx,pk);
在通用查询窗口点击确定的时候如何验证页面上的一些条件?
解决:
实现verify()方法。该方法会在点击确定的时候进行一些验证。
弹出保存文件对话框代码
解决:
KDFileChooser m_chooserSave = new KDFileChooser(); m_chooserSave.setFileFilter(new ExcelFileFilter());
int result = m_chooserSave.showSaveDialog(this);