@@salesforcetechbook On the button click I have a apex class call and in this class I'm publishing the event, so based on the apex transaction I'm storing the value in platform event's field and then this event would be displayed as a toast in lwc. Is the above achievable? If yes please send me a reference
Basically, I want both the event publish and subscribe to happen on button click..... Where the publish would happen in apex and subscribe would be done in lwc in the same function of button call
Hello sir i have created a custom object with name store and created so many fields like name, id, location n all but unable to add searchcontroller for but m able to do for account object Can u plzz help me to do for custom object
Very Nice explanation. Thanks
Can i subscribe to event on a Button Click in LWC?
Yes
@@salesforcetechbook On the button click I have a apex class call and in this class I'm publishing the event, so based on the apex transaction I'm storing the value in platform event's field and then this event would be displayed as a toast in lwc.
Is the above achievable?
If yes please send me a reference
Basically, I want both the event publish and subscribe to happen on button click..... Where the publish would happen in apex and subscribe would be done in lwc in the same function of button call
Hi sir,can you please upload pagination and inlineedit in lwc
Can we see the account names in another org app page?
Or only this org
Yes if you have integrated with that org and publishing the event in that org from your org.
A simple way to learn how to:
- Create a Platform Event;
- Publish the event using Process Builder;
- Consuming an event with a LWC.
Thanks.
You are welcome John 🤝
Hello sir i have created a custom object with name store and created so many fields like name, id, location n all but unable to add searchcontroller for but m able to do for account object
Can u plzz help me to do for custom object
Can you please send your code to
salesforcetechbook@gmail.com