我正在尝试在 javascript 中运行查询并将结果传递给其他查询以提取更多数据。我还希望能够将这些数据全部显示在一个表中,因此我试图将结果安排在 javascript 地图中,但我似乎遇到了问题。
这是在 salesforce.com 内部使用他们的 AJAX 工具包构建的
我的代码是...
var cn = Query("select id, LastName, FirstName, Middle_Name__c, Gender__c, HomePhone, Birthdate, Birth_City__c," +
"Birth_Country__c, SSN_Encrypted__c, Provider_NPI_ID__c, Primary_Specialty__c," +
"Practicing_Specialty__c, Title, GlobalProviderID__c from contact where Name like " +
"'%" + sBox + "%'");
var PFA;
for (var i = 0; i < cn.length; i++) {
var x = new Array();
var PFA = Query("select id, First_Scheduled_Date__c, Region__c " +
"from Provider_Facility_Associations__c where Provider__c='" + cn[i].Id + "'");
m['cn'] = cn[i];
m['PFA'] = PFA;
m[i] = x;
}
console.log(m['cn']);
任何帮助将不胜感激。