Questions tagged [lightning-events]
Lightning Events are a way for markup component to communicate its changing state
328 questions
1 vote
0 answers
134 views
Child component need to re render after value changes in parent component
I have 3 components. Grand Parent --> Parent --> Child. When ever data changed in Child LWC I need to Re-render the Child LWC which is inside Parent LWC. I have tried GET SET methods also. But ...
0 votes
1 answer
93 views
Is it possible to create a calendar in a Chatter group?
I was curious if anyone has ever been able to create a calendar in a Chatter group? I have looked online, but didn't find any information on this topic. I am trying to create a calendar in a Chatter ...
0 votes
1 answer
2k views
LWC Custom Event Issue
I have a LWC Component A(Child), Whose javascript is dispatching an event like this: dispatchRefreshImageDetails(imageId) { //imageId contains Full Image URL as from content version object. ...
2 votes
1 answer
541 views
Return Entire Object from for:each Template in Lightning Web Component (LWC)
Is it possible to return an entire object (not just a single field) from a for:each Template in LWC? Specifically, I'm not sure why I can't access the object in the same way I can a normal object in ...
0 votes
1 answer
650 views
Sending specific objects data from salesforce to third party on every create, update, delete
We are thinking to do reporting in snowflakes while the data creation will happen inside salesforce. To do that, we need to send data to snowflakes on record creation, update and delete. I have gone ...
1 vote
1 answer
551 views
LWC - render component onclick event
I have a lightning button and I have an instance of js Date class. When I click on a button I want it to to show me a date that was week before (subtract 7 days). Here is my .html file: <template&...
0 votes
0 answers
557 views
How to call renderedCallback() in HandleChange field input only once
I have LWC with search input, with every handleKeyChange click on input, renderedCallback() is called, but I need it to call only once. Controller: @track hasRendered = false; @wire(getAcc, { ...
0 votes
1 answer
1k views
Handle Opportunity Stage change
Reuirement : To show the fields and their values BEFORE saving the opportunity ONLY when opportunity Stage is changed to 'closed WON'. For this I'm trying to use the LWC along with lightning modal but ...
1 vote
1 answer
1k views
LWC - before unload does not trigger when changing URL within Salesforce
I have a LWC where the user can edit some records, but those changes are not persisted to the database right away. Instead, I would like to warn the user when they are about close the browser tab or ...
1 vote
1 answer
152 views
Visualforce handler not invoked when event fired in aura component
I'm using an aura component in a visual force page. Aura Component: RichInputText.cmp <aura:component> <aura:attribute name="bodyVal" type="String" /> <!-- ...
0 votes
1 answer
109 views
Detecting the state of the alt/option key in a LWC Headless Quick Action
I'd like my LWC Headless Quick Action to behave differently when the alt/option key is held down. But the platform abstracts away the browser events and calls the invoke function with no additional ...
1 vote
0 answers
204 views
Something is wrong with my code. [LWC Lifecycle hook problem]
I am stuck and unable to figure out a way to get out of this problem. I know I am doing something terribly wrong here. I have two LWC Components - Parent [a container with multiple values to select[...
0 votes
0 answers
127 views
Code inside apex method not running intermittently on button click Aura component
I'm having a parent and child Aura component. There is a button on the parent component that invokes a js action and it further calls a aura enabled apex method. The issue is it is calling the apex ...
-1 votes
1 answer
338 views
Refresh LWC component on another lightning page
I have a LWC component on Account page, which displays a few fields from related opportunity. The requirement states that I need to update LWC on the account record page whenever a defined set of ...
-1 votes
1 answer
310 views
What are the events triggered by the standard Opportunity Sales Path?
I want to build some functionality that will notify the user once they click on any stage in the standard sales path on the opportunity layout but before record save. What are the events which I can ...