0

我有一个服务,它返回一个包含两列的信息表:代码和酋长国。但是由于某种原因,我不想在服务返回的数据形状字段中给出数据形状,所以我在代码中给出了它,问题是我无法在网格中显示返回的信息表,请指教我来解决这个问题。

var params = {infoTableName: "myinfoTable"};


var result = Resources["InfoTableFunctions"].CreateInfoTable(params);

result.AddField({ name: "code", baseType: "STRING" });
result.AddField({name: "emirate", baseType: "STRING" });


var newEntry = new Object();
newEntry.emirate = "Abu Dhabi";
newEntry.code = "AUH";
result.AddRow(newEntry);

var newEntry = new Object();
newEntry.emirate = "Ajman";
newEntry.code = "AJM";
result.AddRow(newEntry);
4

1 回答 1

0

这段代码现在可以工作了,我在混搭连接中遇到了问题

于 2019-02-06T07:24:33.113 回答