You need to sign in to do that
Don't have an account?
Karunat1
Can someone help me pls?
Before adding namespace in my org application was working fine but when I added namespace , app is not working.
Requirement is : I want to show opportunity Name, Account Name and Contact but not getting any record in Lightning Application.
I don't what happend.
<script>
$Lightning.use("sgcpq:ProApp",function(){
$Lightning.createComponent("sgcpq:ProductApplication",{
'OpportunityId':'{!Opportunity.Id}',
'AccountId':'{!Opportunity.AccountId}',
'OpportunityName':'{!Opportunity.Name}',
'AccountName':'{!Opportunity.Account.Name}'
},
"lightning",
function(cmp) {
//cmp.set("v.recordId",'{!$CurrentPage.parameters.id}');
}
);
});
</script>
Requirement is : I want to show opportunity Name, Account Name and Contact but not getting any record in Lightning Application.
I don't what happend.
<script>
$Lightning.use("sgcpq:ProApp",function(){
$Lightning.createComponent("sgcpq:ProductApplication",{
'OpportunityId':'{!Opportunity.Id}',
'AccountId':'{!Opportunity.AccountId}',
'OpportunityName':'{!Opportunity.Name}',
'AccountName':'{!Opportunity.Account.Name}'
},
"lightning",
function(cmp) {
//cmp.set("v.recordId",'{!$CurrentPage.parameters.id}');
}
);
});
</script>
Try replacing sgcpq:ProApp with c:ProApp and sgcpq:ProductApplication woth c:ProductApplication