• billing badge
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi All,

Need a help,

1) want to run the class from 8 Am to 2 PM everyday
2) and want to run the class from 5PM to 3 AM Everyday.
any ideas on cron expression. 

Thanks,
Billing
    
<aura:attirbute name="LeadObj" type="Lead"/>
<lightning:recordEditForm objectApiName="Lead" >
    <lightning:inputField aura:id="accid" fieldName="Account__c" value="{!v.LeadObj.Account__c}" label="Attribute" onchange="{!c.myChangeAcc}"/>
</lightning:recordEditForm>



controller.js

mychangeAcc:function(component,event,helper){
var acc=component.find('accid').get('v.value');
alert(acc);
var action = component.get("c.LeadAccountInfo");

        action.setParams({ldvalue:acc});

}

apex class:

@AuraEnabled
    public static string LeadAccountInfo(Id ldvalue){
Account ac=[select id,Name from Account where Id =:ldvalue limit 1];
        return ac.Name;
}

Hi All ,here in thee above acode it is not passing parameter to apex class. if i test with harcoded id its working 

can anyone help

Thanks,
Billing Badge
Hi all,


can any one help out on this 

Challenge Not yet complete... here's what's wrong:
We couldn't find the Order linked to the Quote named 'Q-00015', with the correct address, Invoice Batch, non-zeroed Total Amount, and Tax Amount. Please make sure the record exists, it contains the correct values according to the requirements, and please try again.

Thanks ,
Jim
<aura:attirbute name="LeadObj" type="Lead"/>
<lightning:recordEditForm objectApiName="Lead" >
    <lightning:inputField aura:id="accid" fieldName="Account__c" value="{!v.LeadObj.Account__c}" label="Attribute" onchange="{!c.myChangeAcc}"/>
</lightning:recordEditForm>



controller.js

mychangeAcc:function(component,event,helper){
var acc=component.find('accid').get('v.value');
alert(acc);
var action = component.get("c.LeadAccountInfo");

        action.setParams({ldvalue:acc});

}

apex class:

@AuraEnabled
    public static string LeadAccountInfo(Id ldvalue){
Account ac=[select id,Name from Account where Id =:ldvalue limit 1];
        return ac.Name;
}

Hi All ,here in thee above acode it is not passing parameter to apex class. if i test with harcoded id its working 

can anyone help

Thanks,
Billing Badge