页面树结构
转至元数据结尾
转至元数据起始

(此文档仅供参考)

问题描述

基于模型创建的参数,无法设置不允许手工输入,在电子表格中使用下拉框控件后用户可以随意在输入框中编辑导致查询有误。

解决方案

可以通过写宏实现禁止编辑需要写宏代码实现,实现代码如下:


function main(spreadsheetReport, isAjaxRefreshCallback) {
setTimeout(function() {
debugger
// var value = spreadsheetReport.elemSheetFrame.contentWindow.document.getElementById('_easyui_textbox_input1');
var value = spreadsheetReport.elemSheetFrame.contentWindow.document.getElementsByClassName('textbox-text validatebox-text ')[0];
value.readOnly = true;
}, 500)
}



  • 无标签