方法1:先把结果集查询出来,再用"添加结果集数据":
方法2:用"更新值"组件,直接更新表格字段的值:
var rs=LB_sqlResultSet("select WZSX,WZMC,GGXH,DJ,ZKL,SJDJ,CGJLDW,CGJLDWSL,PZ,HSL,JLDW,DHSL,JE,JHRQ,FHRQ,ZP,SLC,SLD,SL,SJHSDJ,SE,JSHJ,Protype from TB_P_ContractAud_BDMX where TB_P_ContractAud_ID='"+O_PARAMETER.VContract+"'");
var ho=O_THIS.getColumn("BDMX").getHypotObject();
var row;
rs.beforeFirst();
row=ho.getObject();
var tmp;
var i=1;
while((row=ho.getObject())==null){
while(rs.next()){
var hoo=ho.getObjectInfo();
hoo.getColumn("WZSX").setValue(rs.getString("WZSX")==null?" ":rs.getString("WZSX"));
hoo.getColumn("WZMC").setValue(rs.getString("WZMC")==null?" ":rs.getString("WZMC"));
hoo.getColumn("Fno").setValue(i++);
ho.appendRecord(hoo);
};
};
ho;