动态combobox使用方法
页面:
<r:comboSelect id="comboboxcontractor" queryAction="com.bos.mp.workflow.email.mpemailbiz.getContractorByKind.biz" textField="contractorcn" valueField="contractorname" xpath="contractors">
</r:comboSelect>
JS: 利用AJAX取到DataObject[] 数组对象(JS里的entity类型指的就是DataObject[] 数据,记住EOS以XML为中心,所有数据类型都是DataObject泛对象),然后加载entity数据
var myAjax = new Ajax("com.bos.mp.workflow.email.mpemailbiz.getContractorByKind.biz");
myAjax.submit();
var returnNode =myAjax.getValue("root/data")
$id("comboboxcontractor").freshFromEntity(returnNode);
后台:
一个逻辑流,输出为DataObject [] contractors
posted on 2010-09-07 18:10
紫蝶∏飛揚↗ 阅读(531)
评论(0) 编辑 收藏 所属分类:
EOS