对于ajaxform组件
var record = ajaxform.getRecord();
var storeId = record.get("storeId");
var storeId = ajaxform.getColumnValue("storeId");
对于ajaxgrid组件
function showDetail(cell) {
//此时要问后台要数据,要新主数据的从数据,
var data = ajaxgrid.collectData(true, "all");
var unitDate = unitGrid.collectData(true, "all");
var a =cell["storeId"];
var dataArr = [];
dataArr.push(data);
dataArr.push(unitDate);
$.request({
action : "retrieveAll",
data : dataArr,
params : {
"storeId" : cell["storeId"],
"property.storeId" : a
},
success : ajax_initdb
});
}
获取ajaxgrid选中的数据源
var ds = unitGrid.getCheckedRecordsv();
删除ajaxgrid选中的数据源
unitGrid.delCheckedRecords();