mapping配置了: <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="pointDialog" src="$UI/bluecar/CRM/process/priceSheet/chooseLightActivity.w" title="选择灯箱" resizable="false" routable="true" width="60%" height="60%" onReceive="pointDialogReceive" status="normal" forceRefreshOnOpen="true"><result concept="detailData" operation="new" origin="pointData" xid="default6"> <mapping from="fMediaId" to="fMediumId" xid="default7"></mapping> <mapping from="BL_DWGL" to="fLightId" xid="default8"></mapping> <mapping from="fPublishPrice" to="fPublishPrice" xid="default11"></mapping> <mapping from="fArea" to="fLightArea" xid="default12"></mapping></result></span>
dialog 页面又datatablse列表,我需要将选中的行,绑定到 另一个页面的datatables中,按照以下的配置,列表始终不显示内容:
Model.prototype.result = function(){ //这里实现返回的逻辑 var ret = []; var sdata = this.comp("dataTables1").getCheckeds(); /** 这样不行
for (var int = 0; int < sdata.length; int++) { ret.push(sdata[int].row); } return ret; **/ // 这样也不行 return sdata; };
Model.prototype.OKBtnClick = function(event){ this.comp('wReceiver').windowEnsure(this.result());
};
|