现在设置的ID 是实际值,显示值是CName,能否在参数面板中也获取到CodeValue的值,(因为ID值有用处,用于二级下拉框的联动),是否可以获取到CodeValue的值然后传到sql数据库查询中
再搞个一个隐藏控件
写sql公式,或是value函数,取显示值就好了
this.options.form.getWidgetByName("控件名").getValue();//取实际值
this.options.form.getWidgetByName("控件名").getText();//取显示值
js可以
======
不然在公式中,在转一道
Value函数 https://help.fanruan.com/finereport/doc-view-853.html