• #65959
    Salesforce | Yogesh Yogesh #6
    Forcetalks

    what is the use case of application event in lightning?

    what is the use case of application event in lightning?

    #66000
    Salesforce | Nikita Nikita #2
    Forcetalks

    Hi ,

    Here’s a simple use case of using an application event to update an attribute in another component.

    • A user clicks a button in the notifier component, aeNotifier.cmp.
    • The client-side controller for aeNotifier.cmp sets a message in a component event and fires the event.
    • The handler component, aeHandler.cmp, handles the fired event.
    • The client-side controller for aeHandler.cmp sets an attribute in aeHandler.cmp based on the data sent in the event.

    for more detail ,you may refer https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_application_example.htm

    #66018
    Salesforce | Deepak Deepak #4
    Forcetalks

    The client-side controller for aeNotifier.cmp sets a message in a component event and fires the event. A user clicks a button in the notifier component, aeNotifier.cmp. The client-side controller for aeHandler.cmp sets an attribute in aeHandler.cmp based on the data sent in the event.The handler component, aeHandler.cmp, handles the fired event

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?