问题描述
Lightning 组件“共享”不起作用 我有这个超级简单的代码:
public with sharing class AccountsForReassignmentController {
public with sharing class AccountRecord {
@AuraEnabled
public string AccountID;
}
List < AccountRecord > OutgoingAccountRecords = new List < AccountRecord > (); {
List < contact > ContactsIn = [Select AccountId,from contact
limit 500
];
for (Contact ThisContact: ContactsIn) {
AccountRecord ThisAccountRecord = new AccountRecord();
ThisAccountRecord.AccountID = ThisContact.AccountID;
}
return OutgoingAccountRecords;
}
但是当此代码运行时,它会显示实例中的每条记录。 用户无法从 UI 访问这些记录。 请帮忙。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)