1金币
var dataSourceOption = {
remote: {
read: {
url: './dataList.do'
}
}
};/*url'./dataList.do'返回下列信息[{"code":"01","name":"工程"},{"code":"02","name":"生产"}]*/
var dataManager = new GC.Data.DataManager();
var myTestTable = dataManager.addTable("myTest", dataSourceOption);
myTestTable.fetch();
sheet.setFormula(0.0,'=QUERY("myTest#1","name")');//显示0myTestTable.search("01","code");//返回[]
感觉myTestTable数据未加载,但myTestTable.fetch()执行后跟踪后台相应数据已返回。请问数据加载还有哪些步骤需要执行吗?
|
|