Browse Source

REPORT-64412 获取表名使用文本框内容,而非选择的值

feature/x
lucian 3 years ago
parent
commit
3bab59843a
  1. 7
      designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java

7
designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java

@ -486,12 +486,9 @@ public class ChoosePane extends BasicBeanPane<DataBaseItems> implements Refresha
protected String getTableName() {
String tableName = "";
Object obj = this.tableNameComboBox.getSelectedItemObject();
Object obj = this.tableNameComboBox.getSelectedItem();
if (obj == null) {
obj = this.tableNameComboBox.getSelectedItem();
if (obj == null) {
obj = this.tableNameComboBox.getEditor().getItem();
}
obj = this.tableNameComboBox.getEditor().getItem();
}
if (obj instanceof TreePath) {
Object tp = ((ExpandMutableTreeNode) ((TreePath) obj).getLastPathComponent()).getUserObject();

Loading…
Cancel
Save