var radioGroup0 =this.options.form.getWidgetByName("radioGroup0").getValue(); if(radioGroup0 == "X"){ var kk=this.options.form.getWidgetByName("saparam4"); var X = "X" kk.setValue(X) } var obj = new Array(); var b1 = this.options.form.getWidgetByName("para2").getValue(); var c1 = this.options.form.getWidgetByName("para3").getValue(); obj[0] = new Object(); obj[0].FIELD = 'ZMME001'; obj[0].LOW = b1; obj[0].HIGH = c1; var b2 = this.options.form.getWidgetByName("para4").getValue(); var c2 = "" obj[1] = new Object(); obj[1].FIELD = 'MATNR'; obj[1].LOW = b2; obj[1].HIGH = c2; var b3 = this.options.form.getWidgetByName("saparam4_c").getValue(); obj[1] = new Object(); obj[1].FIELD = 'LGORT_D'; obj[1].LOW = b2; obj[1].HIGH = c2; var state = this.options.form.getWidgetByName("saparam0"); state.setValue(JSON.stringify(obj)); _g().parameterCommit(); setTimeout(function() { var a =_g().getCellValue("B1"); var b =_g().getCellValue("C1"); console.log(a); console.log(b); }, 1000) /*var url = FR.cjkEncode("/webroot/decision/view/report?viewlet=/决策分析/单 号明细报表.cpt&op=write&saparam5="+a+"&saparam7="+b); window.open(url);*/ window.open(encodeURI(encodeURI("/webroot/decision/view/report?viewlet=/决策分析/单号明细报表.cpt&op=write&saparam5="+a+"&saparam7="+b))) 使用公式获取单元格的值 |