Skip to main content
added 95 characters in body
Source Link
I. Simoes
  • 49
  • 1
  • 2
  • 11

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I have so far:

<aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId">
    <aura:attribute name="account" type="Object"/>
    <aura:attribute name="simpleAccount" type="Object"/>
    <aura:attribute name="accountError" type="String"/>
    <force:recordData aura:id="accountRecordLoader"
        recordId="{!v.recordId}"
        fields="Name,NIF__c"
        targetRecord="{!v.account}"
        targetFields="{!v.simpleAccount}"
        targetError="{!v.accountError}"
        recordUpdated="{!c.handleRecordUpdated}"
    />


        
</aura:component>

More specifically, How do I access the fields Name and Nif__c in the Javascript controller?

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I have so far:

<aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId">
    <aura:attribute name="account" type="Object"/>
    <aura:attribute name="simpleAccount" type="Object"/>
    <aura:attribute name="accountError" type="String"/>
    <force:recordData aura:id="accountRecordLoader"
        recordId="{!v.recordId}"
        fields="Name,NIF__c"
        targetRecord="{!v.account}"
        targetFields="{!v.simpleAccount}"
        targetError="{!v.accountError}"
        recordUpdated="{!c.handleRecordUpdated}"
    />


        
</aura:component>

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I have so far:

<aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId">
    <aura:attribute name="account" type="Object"/>
    <aura:attribute name="simpleAccount" type="Object"/>
    <aura:attribute name="accountError" type="String"/>
    <force:recordData aura:id="accountRecordLoader"
        recordId="{!v.recordId}"
        fields="Name,NIF__c"
        targetRecord="{!v.account}"
        targetFields="{!v.simpleAccount}"
        targetError="{!v.accountError}"
        recordUpdated="{!c.handleRecordUpdated}"
    />


        
</aura:component>

More specifically, How do I access the fields Name and Nif__c in the Javascript controller?

added 66 characters in body
Source Link
David Reed
  • 93.7k
  • 14
  • 90
  • 166

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I Havehave so far: <aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId"> <aura:attribute name="account" type="Object"/> <aura:attribute name="simpleAccount" type="Object"/> <aura:attribute name="accountError" type="String"/> <force:recordData aura:id="accountRecordLoader" recordId="{!v.recordId}" fields="Name,NIF__c" targetRecord="{!v.account}" targetFields="{!v.simpleAccount}" targetError="{!v.accountError}" recordUpdated="{!c.handleRecordUpdated}" />

</aura:component>

<aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId">
    <aura:attribute name="account" type="Object"/>
    <aura:attribute name="simpleAccount" type="Object"/>
    <aura:attribute name="accountError" type="String"/>
    <force:recordData aura:id="accountRecordLoader"
        recordId="{!v.recordId}"
        fields="Name,NIF__c"
        targetRecord="{!v.account}"
        targetFields="{!v.simpleAccount}"
        targetError="{!v.accountError}"
        recordUpdated="{!c.handleRecordUpdated}"
    />


        
</aura:component>

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I Have so far: <aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId"> <aura:attribute name="account" type="Object"/> <aura:attribute name="simpleAccount" type="Object"/> <aura:attribute name="accountError" type="String"/> <force:recordData aura:id="accountRecordLoader" recordId="{!v.recordId}" fields="Name,NIF__c" targetRecord="{!v.account}" targetFields="{!v.simpleAccount}" targetError="{!v.accountError}" recordUpdated="{!c.handleRecordUpdated}" />

</aura:component>

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I have so far:

<aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId">
    <aura:attribute name="account" type="Object"/>
    <aura:attribute name="simpleAccount" type="Object"/>
    <aura:attribute name="accountError" type="String"/>
    <force:recordData aura:id="accountRecordLoader"
        recordId="{!v.recordId}"
        fields="Name,NIF__c"
        targetRecord="{!v.account}"
        targetFields="{!v.simpleAccount}"
        targetError="{!v.accountError}"
        recordUpdated="{!c.handleRecordUpdated}"
    />


        
</aura:component>
added 694 characters in body
Source Link
I. Simoes
  • 49
  • 1
  • 2
  • 11

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I Have so far: <aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId"> <aura:attribute name="account" type="Object"/> <aura:attribute name="simpleAccount" type="Object"/> <aura:attribute name="accountError" type="String"/> <force:recordData aura:id="accountRecordLoader" recordId="{!v.recordId}" fields="Name,NIF__c" targetRecord="{!v.account}" targetFields="{!v.simpleAccount}" targetError="{!v.accountError}" recordUpdated="{!c.handleRecordUpdated}" />

</aura:component>

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

I'm having trouble implementing a solution when using an action in the account context, calling a component that passes certain fields to an apex controller. The idea is to use Lightning data service.

This is the component I Have so far: <aura:component controller="CallInformaDBController" implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader, force:hasRecordId"> <aura:attribute name="account" type="Object"/> <aura:attribute name="simpleAccount" type="Object"/> <aura:attribute name="accountError" type="String"/> <force:recordData aura:id="accountRecordLoader" recordId="{!v.recordId}" fields="Name,NIF__c" targetRecord="{!v.account}" targetFields="{!v.simpleAccount}" targetError="{!v.accountError}" recordUpdated="{!c.handleRecordUpdated}" />

</aura:component>

Source Link
I. Simoes
  • 49
  • 1
  • 2
  • 11
Loading