Create an Aura Component
何もしないで検証ボタンを押した場合
The 'MyContactList' component was not found.
コンポーネントを作っただけ
Could not find a Lightning Record Page named 'Account Record Page'.
United Oil & Gas Corpという取引先がなかったけど、問題ないみたい
Retrieve a Contact List
何もしないで検証ボタンを押した場合
The component does not include a 'aura:handler'
({
myAction : function(component, event, helper) {
var action = component.get("c.getContacts");
action.setParams({
recordId: component.get("v.recordId")
});
action.setCallback(this, function(data) {
component.set("v.Contacts", data.getReturnValue());
});
$A.enqueueAction(action);
},
})
Render and Preview the Contact List
何もしないで検証ボタンを押した場合
The component is missing the 'aura:iteration' component
({
myAction : function(component, event, helper) {
var action = component.get("c.getContacts");
action.setParams({
recordId: component.get("v.recordId")
});
action.setCallback(this, function(data) {
component.set("v.Contacts", data.getReturnValue());
component.set("v.Columns", [
{label:"First Name", fieldName:"FirstName", type:"text"},
{label:"Last Name", fieldName:"LastName", type:"text"},
{label:"Phone", fieldName:"Phone", type:"phone"}
]);
});
$A.enqueueAction(action);
},
})